aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-02-27 10:51:26 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-02-27 10:53:01 +0100
commit502d080dae0a3d604a0ff77fc4b0338102b847bc (patch)
tree455ef432e9786c7d829abfdbb22ddfd05da544ea
parent526a1d3dcf7f16dd90b723f1e8f4326a09a8c2b6 (diff)
downloadinitscripts-502d080dae0a3d604a0ff77fc4b0338102b847bc.tar
initscripts-502d080dae0a3d604a0ff77fc4b0338102b847bc.tar.gz
initscripts-502d080dae0a3d604a0ff77fc4b0338102b847bc.tar.bz2
initscripts-502d080dae0a3d604a0ff77fc4b0338102b847bc.tar.xz
initscripts-502d080dae0a3d604a0ff77fc4b0338102b847bc.zip
network: report that we can't shut down network for root on netfs
Conflicts: rc.d/init.d/network
-rwxr-xr-xrc.d/init.d/network1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index bb406438..cbb9ddf7 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -160,6 +160,7 @@ case "$1" in
rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
+ net_log $"rootfs is on network filesystem, leaving network up"
exit 1
fi