]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-pre-pivot pulls in remote-fs.target
authorWANG Chao <chaowang@redhat.com>
Fri, 4 Apr 2014 06:37:42 +0000 (14:37 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 May 2014 09:40:44 +0000 (11:40 +0200)
It turns out that commit f30b74e (dracut-initqueue service runs before
remote-fs-pre.target) is partial fix for remote fs mounts. Because no
one pulls in remote-fs.target, we can never start remote fs mounts.
Now pull in remote-fs.target in dracut-pre-pivot.

Signed-off-by: WANG Chao <chaowang@redhat.com>
modules.d/98systemd/dracut-pre-pivot.service

index 6db1f2c0771aa5e72a93c3782f88453b7b91a7ba..d7c7b1d785d454ef36cb45bba6d02f367a7aede1 100644 (file)
@@ -13,6 +13,8 @@ Documentation=man:dracut-pre-pivot.service(8)
 After=initrd.target initrd-parse-etc.service sysroot.mount
 After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
 Before=initrd-cleanup.service
+Wants=remote-fs.target
+After=remote-fs.target
 ConditionPathExists=/etc/initrd-release
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-pivot
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cleanup