boot/dracut: use systemdsystemunitdir instead of systemdsystemconfdir
authorPavel Valena <pvalena@redhat.com>
Fri, 6 Mar 2026 12:09:32 +0000 (13:09 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 12:09:32 +0000 (13:09 +0100)
since dracut-109 [*], the systemdsystemconfdir exists only in hostonly mode, which leads to unbootable system; as documented here:
https://src.fedoraproject.org/rpms/dracut/pull-request/90

[*] https://github.com/dracut-ng/dracut-ng/commit/2991f74a

src/boot/dracut/module-setup.sh

index 06d74600e38bf907e000a7a29e62b5726cb52f1a..4a70a2eed0f7b1c8aeeb552dd435edfbc081646f 100755 (executable)
@@ -46,7 +46,7 @@ install() {
         inst_simple "/etc/ostree/initramfs-root-binding.key"
     fi
     inst_simple "${systemdsystemunitdir}/ostree-prepare-root.service"
-    mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants"
+    mkdir -p "${initdir}${systemdsystemunitdir}/initrd-root-fs.target.wants"
     ln_r "${systemdsystemunitdir}/ostree-prepare-root.service" \
-        "${systemdsystemconfdir}/initrd-root-fs.target.wants/ostree-prepare-root.service"
+        "${systemdsystemunitdir}/initrd-root-fs.target.wants/ostree-prepare-root.service"
 }