aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-31 18:34:24 +0000
committerBill Nottingham <notting@redhat.com>2001-07-31 18:34:24 +0000
commitb25bdb6a7bb616485fbd8f577484c3b5c8b35c25 (patch)
tree3f37d9e656fca92ce4900924dc0c469eac3829cd /rc.d/init.d
parent807d28bf2191ce20975ac3c6f7e7be3f988cb8e4 (diff)
downloadinitscripts-b25bdb6a7bb616485fbd8f577484c3b5c8b35c25.tar
initscripts-b25bdb6a7bb616485fbd8f577484c3b5c8b35c25.tar.gz
initscripts-b25bdb6a7bb616485fbd8f577484c3b5c8b35c25.tar.bz2
initscripts-b25bdb6a7bb616485fbd8f577484c3b5c8b35c25.tar.xz
initscripts-b25bdb6a7bb616485fbd8f577484c3b5c8b35c25.zip
remount *everything* ro on halt (#50461)
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 ba102da5..e5550469 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -165,7 +165,7 @@ done
# Remount read only anything that's left mounted.
#echo $"Remounting remaining filesystems (if any) readonly"
-mount | awk '/ext2/ { print $3 }' | while read line; do
+mount | awk '/( \/ |^\/dev\/root)/ { print $3 }' | while read line; do
mount -n -o ro,remount $line
done