aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-08-02 12:46:35 -0400
committerPetr Lautrbach <plautrba@redhat.com>2010-12-06 15:33:32 +0100
commitc1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6 (patch)
tree56203a7037d3b73308f0c8c94f5839b48eb6e27e /rc.d
parente2f34b7d86738a1413abd4b93fa7294bf115ab60 (diff)
downloadinitscripts-c1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6.tar
initscripts-c1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6.tar.gz
initscripts-c1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6.tar.bz2
initscripts-c1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6.tar.xz
initscripts-c1a11a5244eeb4da0bcd8b3fef4a4ed2ffefbca6.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 8bdf0346..d6270d7b 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