diff -Nru kdump-tools-1.6.10ubuntu2.1/debian/changelog kdump-tools-1.6.10ubuntu2.2/debian/changelog --- kdump-tools-1.6.10ubuntu2.1/debian/changelog 2022-11-23 18:12:58.000000000 +0000 +++ kdump-tools-1.6.10ubuntu2.2/debian/changelog 2024-02-01 14:34:55.000000000 +0000 @@ -1,3 +1,10 @@ +kdump-tools (1:1.6.10ubuntu2.2) jammy; urgency=medium + + * Disable the initramfs generation in our kernel-postinst hook when + we detect we are running in a chroot. LP: #2043059. + + -- dann frazier Thu, 01 Feb 2024 07:34:55 -0700 + kdump-tools (1:1.6.10ubuntu2.1) jammy; urgency=medium * Modifed ucf call in d/kdump-tools.postinst to use option diff -Nru kdump-tools-1.6.10ubuntu2.1/debian/kernel-postinst-generate-initrd kdump-tools-1.6.10ubuntu2.2/debian/kernel-postinst-generate-initrd --- kdump-tools-1.6.10ubuntu2.1/debian/kernel-postinst-generate-initrd 2021-08-23 23:04:38.000000000 +0000 +++ kdump-tools-1.6.10ubuntu2.2/debian/kernel-postinst-generate-initrd 2024-02-01 14:34:16.000000000 +0000 @@ -21,6 +21,13 @@ exit 0 fi +# initramfs generation may fail, or include an inappropriate set of kernel +# modules in a chroot. Leave it to the target system to handle on reboot +if [ -x "$(command -v ischroot)" ] && ischroot; then + echo "W: kdump-tools: Executing in a chroot, skipping initramfs generation." >&2 + exit 0; +fi + # avoid running multiple times if [ -n "${DEB_MAINT_PARAMS-}" ]; then eval set -- "$DEB_MAINT_PARAMS"