From 96d4f4516141225fc4d395d5310ed83ac087c133 Mon Sep 17 00:00:00 2001 From: Rajendra Dendukuri Date: Fri, 12 Aug 2022 10:07:19 -0700 Subject: [PATCH] [kdump] Keep kdump in disabled mode and let SONiC configuration enable it --- files/build_templates/sonic_debian_extension.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/build_templates/sonic_debian_extension.j2 b/files/build_templates/sonic_debian_extension.j2 index a15822046b61..7ea1663b36c3 100644 --- a/files/build_templates/sonic_debian_extension.j2 +++ b/files/build_templates/sonic_debian_extension.j2 @@ -301,6 +301,8 @@ if [[ $TARGET_BOOTLOADER == grub ]]; then sudo DEBIAN_FRONTEND=noninteractive dpkg --root=$FILESYSTEM_ROOT -i $debs_path/kdump-tools_*.deb || \ sudo LANG=C DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true chroot $FILESYSTEM_ROOT apt-get -q --no-install-suggests --no-install-recommends install cat $IMAGE_CONFIGS/kdump/kdump-tools | sudo tee -a $FILESYSTEM_ROOT/etc/default/kdump-tools > /dev/null + # Keep kdump in disabled mode and let SONiC configuration enable it + sudo sed -i 's/USE_KDUMP=1/USE_KDUMP=0/g' $FILESYSTEM_ROOT/etc/default/kdump-tools for kernel_release in $(ls $FILESYSTEM_ROOT/lib/modules/); do sudo LANG=C chroot $FILESYSTEM_ROOT /etc/kernel/postinst.d/kdump-tools $kernel_release > /dev/null 2>&1