Blame SOURCES/0176-dracut-pre-pivot-pulls-in-remote-fs.target.patch

a56a5e
From 2fed6038bb9c30b903464b838b05a2ceb3412a6b Mon Sep 17 00:00:00 2001
a56a5e
From: WANG Chao <chaowang@redhat.com>
a56a5e
Date: Fri, 4 Apr 2014 14:37:42 +0800
a56a5e
Subject: [PATCH] dracut-pre-pivot pulls in remote-fs.target
a56a5e
a56a5e
It turns out that commit f30b74e (dracut-initqueue service runs before
a56a5e
remote-fs-pre.target) is partial fix for remote fs mounts. Because no
a56a5e
one pulls in remote-fs.target, we can never start remote fs mounts.
a56a5e
Now pull in remote-fs.target in dracut-pre-pivot.
a56a5e
a56a5e
Signed-off-by: WANG Chao <chaowang@redhat.com>
a56a5e
(cherry picked from commit ce7f408dfd473b3c2f4fdb9ddc2b2131e08007d3)
a56a5e
---
a56a5e
 modules.d/98systemd/dracut-pre-pivot.service | 2 ++
a56a5e
 1 file changed, 2 insertions(+)
a56a5e
a56a5e
diff --git a/modules.d/98systemd/dracut-pre-pivot.service b/modules.d/98systemd/dracut-pre-pivot.service
a56a5e
index 6db1f2c..d7c7b1d 100644
a56a5e
--- a/modules.d/98systemd/dracut-pre-pivot.service
a56a5e
+++ b/modules.d/98systemd/dracut-pre-pivot.service
a56a5e
@@ -13,6 +13,8 @@ Documentation=man:dracut-pre-pivot.service(8)
a56a5e
 After=initrd.target initrd-parse-etc.service sysroot.mount
a56a5e
 After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
a56a5e
 Before=initrd-cleanup.service
a56a5e
+Wants=remote-fs.target
a56a5e
+After=remote-fs.target
a56a5e
 ConditionPathExists=/etc/initrd-release
a56a5e
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-pivot
a56a5e
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cleanup