systemd: pre-pivot hooks runs after /sysroot is mounted

If rootflags=nofail, sysroot.mount won't strictly run "Before"
initrd-root-fs.target. So we need to order dracut-pre-pivot after
sysroot.mount.
This commit is contained in:
WANG Chao 2013-08-16 13:13:28 +08:00 committed by Harald Hoyer
parent b7c770e186
commit 55c912ae40

View File

@ -10,7 +10,7 @@
[Unit]
Description=dracut pre-pivot and cleanup hook
Documentation=man:dracut-pre-pivot.service(8)
After=initrd.target initrd-parse-etc.service
After=initrd.target initrd-parse-etc.service sysroot.mount
After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
Before=initrd-cleanup.service
ConditionPathExists=/etc/initrd-release