From c9c50f9a36d72379a6735648119e4e13e8a82f04 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 16 Mar 2020 16:29:46 +0800 Subject: [PATCH] dracut-module-setup.sh: Ensure initrd.target.wants dir exists Latest dracut release stopped creating $systemdsystemunitdir/initrd.target.wants dir for us, so ensure it exists before creating the symlink. Signed-off-by: Kairui Song Tested-and-Reviewed-by: Bhupesh Sharma --- dracut-module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 8691f9c..a18d765 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -827,6 +827,7 @@ install() { inst "/lib/kdump/kdump-lib-initramfs.sh" "/lib/kdump-lib-initramfs.sh" inst "$moddir/kdump.sh" "/usr/bin/kdump.sh" inst "$moddir/kdump-capture.service" "$systemdsystemunitdir/kdump-capture.service" + mkdir -p "$initdir/$systemdsystemunitdir/initrd.target.wants" ln_r "$systemdsystemunitdir/kdump-capture.service" "$systemdsystemunitdir/initrd.target.wants/kdump-capture.service" inst "$moddir/kdump-error-handler.sh" "/usr/bin/kdump-error-handler.sh" inst "$moddir/kdump-error-handler.service" "$systemdsystemunitdir/kdump-error-handler.service"