summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/checkroot.sh
diff options
context:
space:
mode:
authorKristoffer Ericson <kristoffer_e1@hotmail.com>2006-10-25 23:27:19 +0000
committerKristoffer Ericson <kristoffer_e1@hotmail.com>2006-10-25 23:27:19 +0000
commite26108affb65e89fcf248a58564b9c25934a04a0 (patch)
tree3c27feb6d440ed2df41309dae277afc13427c12f /packages/initscripts/initscripts-1.0/checkroot.sh
parentd7fd0e38cb60cb0ac871723c34616bf542d423cc (diff)
parent12f3d309156ac047b0826904ef729b83b997b8b5 (diff)
merge of 5d13f311dd93df73db461d6abca7480b39bbecbc
and 6bdfd4680fb56e499b8a254034efb752dead5002
Diffstat (limited to 'packages/initscripts/initscripts-1.0/checkroot.sh')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/checkroot.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh
index 0283e1acca..3729072656 100755
--- a/packages/initscripts/initscripts-1.0/checkroot.sh
+++ b/packages/initscripts/initscripts-1.0/checkroot.sh
@@ -153,6 +153,13 @@ fi
if [ $(grep rootfs /proc/mounts | awk '{print $4}') = rw ]; then
exit 0
fi
+
+# Add a second check, which seems to be needed for some kernel versions
+if [ $(grep "/dev/root" /proc/mounts | awk '{print $4}') = rw ]; then
+ exit 0
+fi
+
+
echo "Remounting root file system..."
mount -n -o remount,$rootmode /
if test "$rootmode" = rw