Author: glen
Date: Thu Sep 28 16:35:25 2006
New Revision: 7823
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
Remount rootfs only if it's not already rw (or it's better to ignore remount
errors?)
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Thu Sep 28 16:35:25 2006
@@ -370,7 +370,10 @@
fi
# Remount the root filesystem read-write
- run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
+ rw=$(awk '($1 !~ /^#/ && $2 == "/") { print $4; exit}' /proc/mounts)
+ if [[ $rw != *rw* ]]; then
+ run_cmd "Remounting root filesystem in rw mode" mount -n -o
remount,rw /
+ fi
# Update quotas if fsck was run on /
if [ "$_RUN_QUOTACHECK" = "1" -a -x /sbin/quotacheck ]; then
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit