diff options
author | WANG Chao <chaowang@redhat.com> | 2013-08-16 13:13:28 +0800 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-08-19 15:50:57 +0200 |
commit | 55c912ae40cdbb479c4411821a7db943a8cfbc87 (patch) | |
tree | 8f533ed0bac8a32b050ed6cdaf2e9387a1a8f560 | |
parent | b7c770e18602020e42f2666034baa9ae4a33662f (diff) | |
download | dracut-55c912ae40cdbb479c4411821a7db943a8cfbc87.tar.gz dracut-55c912ae40cdbb479c4411821a7db943a8cfbc87.tar.bz2 dracut-55c912ae40cdbb479c4411821a7db943a8cfbc87.zip |
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.
-rw-r--r-- | modules.d/98systemd/dracut-pre-pivot.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/98systemd/dracut-pre-pivot.service b/modules.d/98systemd/dracut-pre-pivot.service index 56818b9f..dd4e49b4 100644 --- a/modules.d/98systemd/dracut-pre-pivot.service +++ b/modules.d/98systemd/dracut-pre-pivot.service @@ -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 |