Skip to content

Commit fbf9dbb

Browse files
authored
[Arista] Enable kdump by default for the first time of booting on some Arista platforms (#23842)
Why I did it This is to enable kdump by default for the first time booting of a new image. We enable it on the platforms defined in write_kdump_cmdline().
1 parent 5f78717 commit fbf9dbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/Aboot/boot0.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ get_eeprom_value() {
488488
write_kdump_cmdline() {
489489
local sid="$(cmdline_get sid | sed 's/Ssd$//')"
490490
case "$sid" in
491+
Lodoga*|*Quicksilver*|*Moby|Shearwater*|Moranda*|Gardena*|PikeIsland*|\
491492
Wolverine*|Clearwater2*|OtterLake*|QuartzDd*|Redstart8Mk2Quartz4*|CitrineDd*)
492493
if ! cmdline_has crashkernel; then
493494
cmdline_add crashkernel=0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-16G:448M,16G-32G:768M,32G-:1G
@@ -888,7 +889,6 @@ write_regular_configs() {
888889
cmdline_add "loop=$image_name/fs.squashfs"
889890
cmdline_add loopfstype=squashfs
890891
write_cmdline
891-
write_kdump_cmdline
892892
}
893893

894894
run_kexec() {
@@ -935,6 +935,7 @@ regular_install() {
935935

936936
info "Generating boot-config, machine.conf and cmdline"
937937
write_regular_configs "$image_path"
938+
write_kdump_cmdline
938939

939940
info "Installing image under $image_path"
940941
extract_image

0 commit comments

Comments
 (0)