Author: arekm Date: Mon Nov 27 13:36:47 2006 New Revision: 8006 Modified: rc-scripts/trunk/rc.d/rc.sysinit Log: Revert remounting based on /proc/mounts entries (current rootfs state is not reflected there).
Modified: rc-scripts/trunk/rc.d/rc.sysinit ============================================================================== --- rc-scripts/trunk/rc.d/rc.sysinit (original) +++ rc-scripts/trunk/rc.d/rc.sysinit Mon Nov 27 13:36:47 2006 @@ -370,12 +370,7 @@ fi # Remount the root filesystem read-write - # There could be multiple entries for rootfs, so if any of them is 'ro' we - # assume rootfs is readonly. - ro=$(awk '$2 == "/" && $4 ~ /(^ro$|^ro,|,ro,|,ro$)/ { readonly = 1 } END { print readonly ? "ro" : "rw"} ' /proc/mounts) - if [ "$ro" = "ro" ]; then - run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw / - fi + run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw / # Update quotas if fsck was run on / if [ "$_RUN_QUOTACHECK" = "1" -a -x /sbin/quotacheck ]; then _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit