[rhel7-branch 1/1] x-initrd.mount should only be set for /var (#1238603)
bcl
installerbot-noreply at redhat.com
Thu Jul 2 23:59:53 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
Only add it to /var and only when /var is on a _netdev.
Resolves: rhbz#1238603
---
blivet/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 18c56f8..94a37b5 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -2826,7 +2826,7 @@ def fstab (self):
for netdev in netdevs:
if device.dependsOn(netdev):
options = options + ",_netdev"
- if root_on_netdev and mountpoint not in ["/", "/usr"]:
+ if root_on_netdev and mountpoint == "/var":
options = options + ",x-initrd.mount"
break
if device.encrypted:
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/44f197c9982319b053061800ca91700a3d43a044
More information about the anaconda-patches
mailing list