From b894cdb7383a35d63f16c59bc31c5c619e64db0d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 28 Sep 2007 12:46:59 +0000 Subject: net.sh now checks to see if root is net mounted if no predown function exists, #194074. --- sh/net.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sh') diff --git a/sh/net.sh b/sh/net.sh index 3be6a421..de3164c3 100755 --- a/sh/net.sh +++ b/sh/net.sh @@ -554,6 +554,11 @@ stop() { eindent predown || return 1 eoutdent + else + if is_net_fs /; then + eerror "root filesystem is network mounted -- can't stop ${IFACE}" + return 1 + fi fi for module in ${MODULES} ; do -- cgit v1.2.3