diff --git a/systemd-units/plymouth-switch-root-initramfs.service.in b/systemd-units/plymouth-switch-root-initramfs.service.in index 0610803c..e7b5a5ea 100644 --- a/systemd-units/plymouth-switch-root-initramfs.service.in +++ b/systemd-units/plymouth-switch-root-initramfs.service.in @@ -4,8 +4,9 @@ DefaultDependencies=no # dracut-shutdown.service restores the initramfs when it is _stopped_ # use Conflicts to make sure its ExecStop has run before we do Conflicts=dracut-shutdown.service -After=plymouth-halt.service plymouth-reboot.service plymouth-poweroff.service plymouth-kexec.service dracut-shutdown.service -ConditionPathExists=/run/initramfs/bin/sh +After=plymouth-halt.service plymouth-reboot.service plymouth-poweroff.service plymouth-kexec.service dracut-shutdown.service mkinitcpio-generate-shutdown-ramfs.service +ConditionPathExists=|/run/initramfs/bin/sh +ConditionPathExists=|/run/initramfs/shutdown [Service] Type=oneshot