diff options
author | Bill Nottingham <notting@redhat.com> | 2000-01-10 21:48:54 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-01-10 21:48:54 +0000 |
commit | e40ace56b7a4c246d82808761f301759ee8803ae (patch) | |
tree | a7c72b781fa5a52b18bb830eedf31877176f94c4 /rc.d | |
parent | 710297ebc85fbc7c9e9a24ad6b5e731cebfda746 (diff) | |
download | initscripts-e40ace56b7a4c246d82808761f301759ee8803ae.tar initscripts-e40ace56b7a4c246d82808761f301759ee8803ae.tar.gz initscripts-e40ace56b7a4c246d82808761f301759ee8803ae.tar.bz2 initscripts-e40ace56b7a4c246d82808761f301759ee8803ae.tar.xz initscripts-e40ace56b7a4c246d82808761f301759ee8803ae.zip |
ignore loopfs when umounting
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/halt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 6d832914..d65fef40 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -67,7 +67,7 @@ SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps` # Unmount file systems, killing processes if we have to. sig= retry=3 -remaining=`awk '!/(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` +remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then @@ -76,7 +76,7 @@ do runcmd "Unmounting file systems" umount -a -f -t noproc fi sleep 2 - remaining=`awk '!/(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` + remaining=`awk '!/(^#|proc|loopfs|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts` [ -z "$remaining" ] && break /sbin/fuser -k -m $sig $remaining >/dev/null sleep 5 |