mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user