ab0e4d
From ab6377eebef8e811dd3fd6d43e2af14dbada75d9 Mon Sep 17 00:00:00 2001
ab0e4d
From: Lukas Nykryn <lnykryn@redhat.com>
ab0e4d
Date: Tue, 15 Dec 2020 14:04:24 +0100
ab0e4d
Subject: [PATCH] dracut-systemd: create the initrd.target.wants directory
ab0e4d
ab0e4d
kexec-tools depends on the existence of this directory in RHEL8
ab0e4d
ab0e4d
Resolves: #1888779
ab0e4d
---
ab0e4d
 modules.d/98dracut-systemd/module-setup.sh | 1 +
ab0e4d
 1 file changed, 1 insertion(+)
ab0e4d
ab0e4d
diff --git a/modules.d/98dracut-systemd/module-setup.sh b/modules.d/98dracut-systemd/module-setup.sh
ab0e4d
index 1387433a..9a0f476c 100755
ab0e4d
--- a/modules.d/98dracut-systemd/module-setup.sh
ab0e4d
+++ b/modules.d/98dracut-systemd/module-setup.sh
ab0e4d
@@ -43,6 +43,7 @@ install() {
ab0e4d
 
ab0e4d
     inst_script "$moddir/rootfs-generator.sh" $systemdutildir/system-generators/dracut-rootfs-generator
ab0e4d
 
ab0e4d
+    mkdir -p "${initdir}/$systemdsystemunitdir/initrd.target.wants"
ab0e4d
     for i in \
ab0e4d
         dracut-cmdline.service \
ab0e4d
         dracut-cmdline-ask.service \
ab0e4d