diff options
-rwxr-xr-x | src/boot/dracut/module-setup.sh | 4 | ||||
-rw-r--r-- | src/boot/ostree-prepare-root.service | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/boot/dracut/module-setup.sh b/src/boot/dracut/module-setup.sh index 70364c4b..4d12fae6 100755 --- a/src/boot/dracut/module-setup.sh +++ b/src/boot/dracut/module-setup.sh @@ -36,7 +36,7 @@ depends() { install() { dracut_install /usr/lib/ostree/ostree-prepare-root inst_simple "${systemdsystemunitdir}/ostree-prepare-root.service" - mkdir -p "${initdir}${systemdsystemconfdir}/initrd-switch-root.target.wants" + mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants" ln_r "${systemdsystemunitdir}/ostree-prepare-root.service" \ - "${systemdsystemconfdir}/initrd-switch-root.target.wants/ostree-prepare-root.service" + "${systemdsystemconfdir}/initrd-root-fs.target.wants/ostree-prepare-root.service" } diff --git a/src/boot/ostree-prepare-root.service b/src/boot/ostree-prepare-root.service index 455afc3e..63357581 100644 --- a/src/boot/ostree-prepare-root.service +++ b/src/boot/ostree-prepare-root.service @@ -22,9 +22,8 @@ DefaultDependencies=no ConditionKernelCommandLine=ostree ConditionPathExists=/etc/initrd-release OnFailure=emergency.target -After=initrd-switch-root.target -Before=initrd-switch-root.service -Before=plymouth-switch-root.service +After=sysroot.mount +Before=initrd-root-fs.target [Service] Type=oneshot |