]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Revert remounting based on /proc/mounts entries (current rootfs state is not reflecte...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 27 Nov 2006 12:36:47 +0000 (12:36 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 27 Nov 2006 12:36:47 +0000 (12:36 +0000)
svn-id: @8006

rc.d/rc.sysinit

index 00a1a75dc8b617ce38c3b00f9fb51b25a5fc4329..7588e008201e243282e17db2a5c4af379bcfd091 100755 (executable)
@@ -370,12 +370,7 @@ if ! is_yes "$VSERVER"; then
        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
This page took 0.033194 seconds and 4 git commands to generate.