Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kdump-tools to not overwrite MODULES conf to dep #17490

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 9f15d2abc8c39bc6eae6ffaccbb3a5d9d4fa84b8 Mon Sep 17 00:00:00 2001
From: Vivek Reddy <vkarri@nvidia.com>
Date: Tue, 12 Dec 2023 11:15:54 +0200
Subject: [PATCH] Revert the MODULES=dep optimization to reduce the size of initramfs

kdump-tools command is failing in chroot because of this optimization
Overriding the MODULES to dep is causing mkinitramfs to search for the
block device where the / is mounted
Ref: https://www.mail-archive.com/kernel-packages@lists.launchpad.net/msg515013.html

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
---
debian/kernel-postinst-generate-initrd | 6 ------
1 file changed, 6 deletions(-)

diff --git a/debian/kernel-postinst-generate-initrd b/debian/kernel-postinst-generate-initrd
index 1140c40..96a0f15 100755
--- a/debian/kernel-postinst-generate-initrd
+++ b/debian/kernel-postinst-generate-initrd
@@ -40,12 +40,6 @@ for conf_file in /etc/initramfs-tools/conf.d/*; do
fi
done

-if test "${MODULES-most}" = most; then
- # Switch from "most" to "dep" to reduce the size of the initramfs.
- # "netboot" and "list" are expected to be already small enough.
- KDUMP_MODULES=dep
-fi
-
# We need a modified copy of initramfs-tools directory
# with MODULES=dep in initramfs.conf
if [ ! -d "$kdumpdir" ];then
--
2.41.0

1 change: 1 addition & 0 deletions src/kdump-tools/patch/series
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
0002-core-file-prefixed-by-kdump.patch
0003-Revert-the-MODULES-dep-optimization.patch
Loading