Skip to content

Commit

Permalink
[cisco]: Enable Kdump config by default for cisco-8000 (#16224)
Browse files Browse the repository at this point in the history
Why I did it
Enabling kdump by default for cisco-8000 by setting crashkernel cmdline arg in device installer.conf.
After bootup, sonic-kdump-config wipes crashkernel arg from /host/grub/grub.cfg, and resets USE_KDUMP in /etc/default/kdump-tools, so kdump will not be enabled on subsequent reboot.

How I did it
Setting kdump enable config as part of init_cfg.json for cisco-8000 platforms.

How to verify it
Install SONiC image with kdump enabled by default (device/hwsku/installer.conf), then reboot.
Kdump config should persist on subsequent reboots and kdump loaded during bootup

Signed-off-by: Aman Singhal <amans@cisco.com>
  • Loading branch information
amnsinghal authored and mssonicbld committed Oct 17, 2023
1 parent 39cdee5 commit 9c2f7a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions files/build_templates/init_cfg.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,16 @@
{% endif %}
}
{% endif %}
},
"KDUMP": {
"config": {
{%- if sonic_asic_platform == "cisco-8000" %}
"enabled": "true",
{% else %}
"enabled": "false",
{% endif %}
"memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M",
"num_dumps": "3"
}
}
}

0 comments on commit 9c2f7a2

Please sign in to comment.