From 745d0630535179420ee7ed32244f8c34ee5ab6f3 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Thu, 6 Jan 2022 14:20:35 +0800 Subject: [PATCH] dracut-early-kdump-module-setup.sh: install xargs and kdump-lib-initramfs.sh resolves: bz2031737 upstream: fedora conflict: none commit 004daebefffcc81993413c4d4ce1f501294e3226 Author: Tao Liu Date: Sat Dec 18 16:14:44 2021 +0800 dracut-early-kdump-module-setup.sh: install xargs and kdump-lib-initramfs.sh For earlykdump, kdump-lib-initramfs.sh is sourced by kdump-lib.sh, however it is not installed in dracut-early-kdump-module-setup.sh. Same as xargs, which is used by kdump-lib.sh. Otherwise earlykdump will report file not found errors. Fixes: a5faa052d4969cb66719d0b795d746449d3c71b7 ("kdump-lib-initramfs.sh: prepare to be a POSIX compatible lib") Fixes: 4f01cb1b0a4e1ea9467e9ace34d14dcb2fbe135a ("kdump-lib.sh: fix variable quoting issue") Signed-off-by: Tao Liu Acked-by: Coiby Xu Signed-off-by: Tao Liu --- dracut-early-kdump-module-setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dracut-early-kdump-module-setup.sh b/dracut-early-kdump-module-setup.sh index 0e46823..0451118 100755 --- a/dracut-early-kdump-module-setup.sh +++ b/dracut-early-kdump-module-setup.sh @@ -50,7 +50,9 @@ install() { inst_binary "/usr/bin/gawk" "/usr/bin/awk" inst_binary "/usr/bin/logger" "/usr/bin/logger" inst_binary "/usr/bin/printf" "/usr/bin/printf" + inst_binary "/usr/bin/xargs" "/usr/bin/xargs" inst_script "/lib/kdump/kdump-lib.sh" "/lib/kdump-lib.sh" + inst_script "/lib/kdump/kdump-lib-initramfs.sh" "/lib/kdump/kdump-lib-initramfs.sh" inst_script "/lib/kdump/kdump-logger.sh" "/lib/kdump-logger.sh" inst_hook cmdline 00 "$moddir/early-kdump.sh" inst_binary "$KDUMP_KERNEL"