earlykdump is not suppose to be loaded for a kdump initramfs, and user
may add it into dracut's config file so it will be included by default.
It will also make the image building always fail because earlykdump
actually detect if it's being used for kdump image and raise an error if
so.
In that case, we always force drop this module to avoid such problem.
Signed-off-by: Kairui Song <ryncsn(a)gmail.com>
---
mkdumprd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkdumprd b/mkdumprd
index a6f7fe8..04668e4 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -37,7 +37,7 @@ is_wdt_addition_needed
[[ $? -eq 0 ]] && WDTCFG="-a watchdog"
extra_modules=""
-dracut_args=("--quiet" "--hostonly" "--hostonly-cmdline"
"--hostonly-i18n" "--hostonly-mode" "strict" "-o"
"plymouth dash resume ifcfg" $WDTCFG)
+dracut_args=("--quiet" "--hostonly" "--hostonly-cmdline"
"--hostonly-i18n" "--hostonly-mode" "strict" "-o"
"plymouth dash resume ifcfg earlykdump" $WDTCFG)
OVERRIDE_RESETTABLE=0
add_dracut_arg() {
--
2.20.1
Show replies by thread