Blame 0013-dracut-initqueue-service-runs-before-remote-fs-pre.t.patch

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