diff options
author | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-10-25 23:27:19 +0000 |
---|---|---|
committer | Kristoffer Ericson <kristoffer_e1@hotmail.com> | 2006-10-25 23:27:19 +0000 |
commit | e26108affb65e89fcf248a58564b9c25934a04a0 (patch) | |
tree | 3c27feb6d440ed2df41309dae277afc13427c12f /packages/initscripts/initscripts-1.0/checkroot.sh | |
parent | d7fd0e38cb60cb0ac871723c34616bf542d423cc (diff) | |
parent | 12f3d309156ac047b0826904ef729b83b997b8b5 (diff) |
merge of 5d13f311dd93df73db461d6abca7480b39bbecbc
and 6bdfd4680fb56e499b8a254034efb752dead5002
Diffstat (limited to 'packages/initscripts/initscripts-1.0/checkroot.sh')
-rwxr-xr-x | packages/initscripts/initscripts-1.0/checkroot.sh | 7 |
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 |