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