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