busybox-initramfs: dont unmount some special filesystems here and mount again in OS, insteaded move mountpoints

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-19 11:37:38 +02:00
parent 242993a10f
commit 5d1a99441b
2 changed files with 5 additions and 5 deletions

View File

@ -174,9 +174,9 @@ REBOOT="0"
/bin/busybox mount --move /storage /sysroot/storage /bin/busybox mount --move /storage /sysroot/storage
fi fi
# unmount all other filesystems # move some special filesystems
/bin/busybox umount /dev /bin/busybox mount --move /dev /sysroot/dev
/bin/busybox umount /proc /bin/busybox mount --move /proc /sysroot/proc
# switch to new sysroot and start real init # switch to new sysroot and start real init
exec /bin/busybox switch_root /sysroot /sbin/init exec /bin/busybox switch_root /sysroot /sbin/init

View File

@ -21,12 +21,12 @@
################################################################################ ################################################################################
# mounting needed special filesystems # mounting needed special filesystems
mount -n -t proc none /proc # mount -n -t proc none /proc # mounted in initramfs
mount -n -t sysfs none /sys mount -n -t sysfs none /sys
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
mount -n -t devtmpfs none /dev # mount -n -t devtmpfs none /dev # mounted in initramfs
mkdir -p /dev/pts mkdir -p /dev/pts
mount -n -t devpts -o gid=5,mode=620 none /dev/pts mount -n -t devpts -o gid=5,mode=620 none /dev/pts