aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-04-01 14:10:14 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-04-01 14:12:17 +0200
commit9d6e80ff044a16a239ad1ea64c1444b03a059d26 (patch)
tree343b84017e15898a85d70eb10927804af7b7783f /rc.d
parent4e87d899e14c6a23028d687316268a4775104676 (diff)
downloadinitscripts-9d6e80ff044a16a239ad1ea64c1444b03a059d26.tar
initscripts-9d6e80ff044a16a239ad1ea64c1444b03a059d26.tar.gz
initscripts-9d6e80ff044a16a239ad1ea64c1444b03a059d26.tar.bz2
initscripts-9d6e80ff044a16a239ad1ea64c1444b03a059d26.tar.xz
initscripts-9d6e80ff044a16a239ad1ea64c1444b03a059d26.zip
network: detect if / is on netfs
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 56c59f7e..74da26d9 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -162,6 +162,8 @@ case "$1" in
if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
exit 1
fi
+
+ systemctl show --property=RequiredBy -- -.mount | grep -q 'remote-fs.target' && exit 1
vlaninterfaces=""
vpninterfaces=""