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:10:14 +0200 |
commit | b71c97248f6a845b681e5f8fd257eda44b1a8326 (patch) | |
tree | e9c1f3799ac9ac7d926b481678b2b8a90869c106 /rc.d/init.d/network | |
parent | d26663e91b4f7f25550dcd1fec0eef45deee5a7d (diff) | |
download | initscripts-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-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 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="" |