Skip to content

Commit

Permalink
Enabled configuring the default number of kdumps in Linux. (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
bmridul and saiarcot895 authored Jan 21, 2025
1 parent ca9d329 commit d7e4df5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,10 @@ class KdumpCfg(object):
value = self.kdump_defaults.get(row)
if not kdump_conf.get(row):
self.config_db.mod_entry("KDUMP", "config", {row: value})

# Configure num_dumps
num_dumps = kdump_conf.get("num_dumps") or self.kdump_defaults["num_dumps"]
run_cmd(["sonic-kdump-config", "--num_dumps", num_dumps])

def kdump_update(self, key, data):
syslog.syslog(syslog.LOG_INFO, "Kdump global configuration update")
Expand Down

0 comments on commit d7e4df5

Please sign in to comment.