]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-initqueue service runs before remote-fs-pre.target
authorWANG Chao <chaowang@redhat.com>
Thu, 3 Apr 2014 07:49:26 +0000 (15:49 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:58:13 +0000 (11:58 +0200)
With the following commit, dracut doesn't mount anything from /etc/fstab

commit e920bfb
Author: WANG Chao <chaowang@redhat.com>
Date:   Tue Apr 1 15:20:49 2014 +0800

    fstab: do not mount and fsck from fstab if using systemd

But systemd doesn't mount nfs at all, because no unit is pulling in
remote-fs.target.

dracut must pull in these remote fs mount and all these remote mounts
should start only after network is up (ie. after dracut-initqueue).

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit b31250e7e6e6e104674dc304ba74965bb56074d6)

modules.d/98systemd/dracut-initqueue.service

index 03dcc4ebf5972d934b1e988d41b587340c1f3e00..1b9e701bea146d5f6414bfc51f91efaaaccb59e3 100644 (file)
@@ -11,6 +11,8 @@
 Description=dracut initqueue hook
 Documentation=man:dracut-initqueue.service(8)
 DefaultDependencies=no
+Before=remote-fs-pre.target
+Wants=remote-fs-pre.target
 After=systemd-udev-trigger.service
 Wants=systemd-udev-trigger.service
 ConditionPathExists=/etc/initrd-release