From 9d6e80ff044a16a239ad1ea64c1444b03a059d26 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 1 Apr 2014 14:10:14 +0200 Subject: network: detect if / is on netfs --- rc.d/init.d/network | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rc.d') 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="" -- cgit v1.2.1