Blame SOURCES/0163-dracut-initqueue-service-runs-before-remote-fs-pre.t.patch

a56a5e
From 251d5b65e331b89249d4ce1b626a738874dfef06 Mon Sep 17 00:00:00 2001
a56a5e
From: WANG Chao <chaowang@redhat.com>
a56a5e
Date: Thu, 3 Apr 2014 15:49:26 +0800
a56a5e
Subject: [PATCH] dracut-initqueue service runs before remote-fs-pre.target
a56a5e
a56a5e
With the following commit, dracut doesn't mount anything from /etc/fstab
a56a5e
a56a5e
commit e920bfb
a56a5e
Author: WANG Chao <chaowang@redhat.com>
a56a5e
Date:   Tue Apr 1 15:20:49 2014 +0800
a56a5e
a56a5e
    fstab: do not mount and fsck from fstab if using systemd
a56a5e
a56a5e
But systemd doesn't mount nfs at all, because no unit is pulling in
a56a5e
remote-fs.target.
a56a5e
a56a5e
dracut must pull in these remote fs mount and all these remote mounts
a56a5e
should start only after network is up (ie. after dracut-initqueue).
a56a5e
a56a5e
Signed-off-by: WANG Chao <chaowang@redhat.com>
a56a5e
(cherry picked from commit b31250e7e6e6e104674dc304ba74965bb56074d6)
a56a5e
---
a56a5e
 modules.d/98systemd/dracut-initqueue.service | 2 ++
a56a5e
 1 file changed, 2 insertions(+)
a56a5e
a56a5e
diff --git a/modules.d/98systemd/dracut-initqueue.service b/modules.d/98systemd/dracut-initqueue.service
a56a5e
index 03dcc4e..1b9e701 100644
a56a5e
--- a/modules.d/98systemd/dracut-initqueue.service
a56a5e
+++ b/modules.d/98systemd/dracut-initqueue.service
a56a5e
@@ -11,6 +11,8 @@
a56a5e
 Description=dracut initqueue hook
a56a5e
 Documentation=man:dracut-initqueue.service(8)
a56a5e
 DefaultDependencies=no
a56a5e
+Before=remote-fs-pre.target
a56a5e
+Wants=remote-fs-pre.target
a56a5e
 After=systemd-udev-trigger.service
a56a5e
 Wants=systemd-udev-trigger.service
a56a5e
 ConditionPathExists=/etc/initrd-release