systemd: pre-pivot hooks runs after /sysroot is mounted
authorWANG Chao <chaowang@redhat.com>
Fri, 16 Aug 2013 05:13:28 +0000 (13:13 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 19 Aug 2013 13:50:57 +0000 (15:50 +0200)
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.

modules.d/98systemd/dracut-pre-pivot.service

index 56818b9..dd4e49b 100644 (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