aboutsummaryrefslogtreecommitdiffstats
path: root/rc.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:11:24 -0400
commite9d7693047eb9858352ea58ae1891bcc49f6aa6e (patch)
tree59bc7f9e895dd7cc0290ad3746d66e5858bb8988 /rc.d
parent29f9a502cdd3535203f8dcd37e60b8cdc6a6e700 (diff)
downloadinitscripts-e9d7693047eb9858352ea58ae1891bcc49f6aa6e.tar
initscripts-e9d7693047eb9858352ea58ae1891bcc49f6aa6e.tar.gz
initscripts-e9d7693047eb9858352ea58ae1891bcc49f6aa6e.tar.bz2
initscripts-e9d7693047eb9858352ea58ae1891bcc49f6aa6e.tar.xz
initscripts-e9d7693047eb9858352ea58ae1891bcc49f6aa6e.zip
Don't unmount sysfs in halt. (#446292)
Diffstat (limited to 'rc.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