Skip to content

Commit 8e6d6a8

Browse files
amnsinghalsonic-otn
authored andcommitted
[cisco]: Enable Kdump config by default for cisco-8000 (sonic-net#16224)
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 <[email protected]>
1 parent dc3807f commit 8e6d6a8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

files/build_templates/init_cfg.json.j2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,16 @@
144144
{% endif %}
145145
}
146146
{% endif %}
147+
},
148+
"KDUMP": {
149+
"config": {
150+
{%- if sonic_asic_platform == "cisco-8000" %}
151+
"enabled": "true",
152+
{% else %}
153+
"enabled": "false",
154+
{% endif %}
155+
"memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M",
156+
"num_dumps": "3"
157+
}
147158
}
148159
}

0 commit comments

Comments
 (0)