From b71c97248f6a845b681e5f8fd257eda44b1a8326 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 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="" -- cgit v1.2.1