aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
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:10:14 +0200
commitb71c97248f6a845b681e5f8fd257eda44b1a8326 (patch)
treee9c1f3799ac9ac7d926b481678b2b8a90869c106 /rc.d/init.d/network
parentd26663e91b4f7f25550dcd1fec0eef45deee5a7d (diff)
downloadinitscripts-b71c97248f6a845b681e5f8fd257eda44b1a8326.tar
initscripts-b71c97248f6a845b681e5f8fd257eda44b1a8326.tar.gz
initscripts-b71c97248f6a845b681e5f8fd257eda44b1a8326.tar.bz2
initscripts-b71c97248f6a845b681e5f8fd257eda44b1a8326.tar.xz
initscripts-b71c97248f6a845b681e5f8fd257eda44b1a8326.zip
network: detect if / is on netfs
Diffstat (limited to 'rc.d/init.d/network')
-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 6f602fe4..2f0cc904 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=""