aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-05-15 12:11:24 -0400
committerBill Nottingham <notting@redhat.com>2008-05-15 12:17:43 -0400
commit0fb6027765ef9d9389fdac0a165e8d62100e0c19 (patch)
tree7612f932e577ad1f8ff584fc405a9ffb9779ba86 /rc.d/init.d
parent6ea10962cfb581e79616f476ec1fe8707b0f73ef (diff)
downloadinitscripts-0fb6027765ef9d9389fdac0a165e8d62100e0c19.tar
initscripts-0fb6027765ef9d9389fdac0a165e8d62100e0c19.tar.gz
initscripts-0fb6027765ef9d9389fdac0a165e8d62100e0c19.tar.bz2
initscripts-0fb6027765ef9d9389fdac0a165e8d62100e0c19.tar.xz
initscripts-0fb6027765ef9d9389fdac0a165e8d62100e0c19.zip
Don't unmount sysfs in halt. (#446292)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 2eb77582..43250eec 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -153,7 +153,7 @@ rm -f /.autofsck
# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
-awk '$2 !~ /\/(|dev|proc|selinux)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
+awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
/proc/mounts | sort -r | \
while read line; do
fstab-decode umount -f $line