diff options
author | Christian Heim <phreak@gentoo.org> | 2006-05-25 10:09:00 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-05-25 10:09:00 +0000 |
commit | 641e205510a26ca3ae4ed9d3f7e27221e2656bb7 (patch) | |
tree | 86e317c5d043dfbde91cb981229623ca4a189c52 /net-scripts/init.d/net.lo | |
parent | Merging baselayout r2022 for branches/rc-scripts_1_6, branches/baselayout-1_1... (diff) | |
download | baselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.tar.gz baselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.tar.bz2 baselayout-vserver-641e205510a26ca3ae4ed9d3f7e27221e2656bb7.zip |
Merging r2046
svn path=/baselayout-vserver/trunk/; revision=365
Diffstat (limited to 'net-scripts/init.d/net.lo')
-rwxr-xr-x | net-scripts/init.d/net.lo | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net-scripts/init.d/net.lo b/net-scripts/init.d/net.lo index ed46320..e5e4990 100755 --- a/net-scripts/init.d/net.lo +++ b/net-scripts/init.d/net.lo @@ -976,9 +976,17 @@ run_stop() { ( predown "${iface}" ) eend $? "predown ${iface} failed" || return 1 eoutdent - elif is_net_fs /; then + elif is_net_fs / ; then eerror "root filesystem is network mounted -- can't stop ${iface}" return 1 + elif is_union_fs / ; then + for x in $(unionctl "${dir}" --list \ + | sed -e 's/^\(.*\) .*/\1/') ; do + if is_net_fs "${x}" ; then + eerror "Part of the root filesystem is network mounted - cannot stop ${iface}" + return 1 + fi + done fi iface_stop "${iface}" || return 1 # always succeeds, btw |