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