From b25bdb6a7bb616485fbd8f577484c3b5c8b35c25 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 31 Jul 2001 18:34:24 +0000 Subject: remount *everything* ro on halt (#50461) --- rc.d/init.d/halt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/halt') 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 -- cgit v1.2.1