aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-08-02 12:46:35 -0400
committerBill Nottingham <notting@redhat.com>2010-08-02 12:46:35 -0400
commit7f30a61d4c0e679d1e841e8ee559e2c3305a1dea (patch)
treec4f08844c3444946cba8a56994bf9562b0e73b79 /rc.d
parent677fbac75b7517a4e20a65d555e3d33c37af79a4 (diff)
downloadinitscripts-7f30a61d4c0e679d1e841e8ee559e2c3305a1dea.tar
initscripts-7f30a61d4c0e679d1e841e8ee559e2c3305a1dea.tar.gz
initscripts-7f30a61d4c0e679d1e841e8ee559e2c3305a1dea.tar.bz2
initscripts-7f30a61d4c0e679d1e841e8ee559e2c3305a1dea.tar.xz
initscripts-7f30a61d4c0e679d1e841e8ee559e2c3305a1dea.zip
Explicitly pass both device and dir when remounting read-only (#620461, <phr@doc.ic.ac.uk>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 05e3d460..bd89efcc 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -170,8 +170,8 @@ kill -TERM 1
# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
-mount | awk '{ print $3 }' | while read line; do
- fstab-decode mount -n -o ro,remount $line
+mount | awk '{ print $1,$3 }' | while read $dev $dir; do
+ fstab-decode mount -n -o ro,remount $dev $dir
done
# If we left mdmon's running wait for the raidsets to become clean