diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-04-01 14:10:14 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-04-01 14:12:17 +0200 |
commit | 9d6e80ff044a16a239ad1ea64c1444b03a059d26 (patch) | |
tree | 343b84017e15898a85d70eb10927804af7b7783f /rc.d/init.d | |
parent | 4e87d899e14c6a23028d687316268a4775104676 (diff) | |
download | initscripts-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/init.d')
-rwxr-xr-x | rc.d/init.d/network | 2 |
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="" |