diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-09 17:16:11 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-09 17:16:11 +0000 |
commit | 9b3ef75cd227db3d66d2189dc6e405dfa4aa0de1 (patch) | |
tree | 44bf5f87c4fc0da1be777ac7f23b11558d1ed895 /meta/packages/initscripts/initscripts-1.0 | |
parent | 909ea433f1e5b686e20636fcdb553f6890b47f02 (diff) | |
download | openembedded-core-9b3ef75cd227db3d66d2189dc6e405dfa4aa0de1.tar.gz openembedded-core-9b3ef75cd227db3d66d2189dc6e405dfa4aa0de1.tar.bz2 openembedded-core-9b3ef75cd227db3d66d2189dc6e405dfa4aa0de1.zip |
initscripts: Remove mtab madness from checkroot.sh since it doesn't work with busybox mount and a symlink to proc is much easier
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4458 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0')
-rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/checkroot.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/checkroot.sh b/meta/packages/initscripts/initscripts-1.0/checkroot.sh index 8255038c32..c96c7b88cb 100755 --- a/meta/packages/initscripts/initscripts-1.0/checkroot.sh +++ b/meta/packages/initscripts/initscripts-1.0/checkroot.sh @@ -152,14 +152,7 @@ fi mount -n -o remount,$rootmode / if test "$rootmode" = rw then - if test ! -L /etc/mtab - then - rm -f /etc/mtab~ /etc/nologin - : > /etc/mtab - fi - mount -f -o remount / - mount -f /proc - test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" + ln -sf /proc/mounts /dev/mtab fi : exit 0 |