From 5d1a99441be67aee7bdf8baf917eaca78f7ffba6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 19 Sep 2011 11:37:38 +0200 Subject: [PATCH] busybox-initramfs: dont unmount some special filesystems here and mount again in OS, insteaded move mountpoints Signed-off-by: Stephan Raue --- packages/initramfs/sysutils/busybox-initramfs/scripts/init | 6 +++--- packages/sysutils/busybox/scripts/init | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/initramfs/sysutils/busybox-initramfs/scripts/init b/packages/initramfs/sysutils/busybox-initramfs/scripts/init index fa10a66a7f..42dded7099 100755 --- a/packages/initramfs/sysutils/busybox-initramfs/scripts/init +++ b/packages/initramfs/sysutils/busybox-initramfs/scripts/init @@ -174,9 +174,9 @@ REBOOT="0" /bin/busybox mount --move /storage /sysroot/storage fi -# unmount all other filesystems - /bin/busybox umount /dev - /bin/busybox umount /proc +# move some special filesystems + /bin/busybox mount --move /dev /sysroot/dev + /bin/busybox mount --move /proc /sysroot/proc # switch to new sysroot and start real init exec /bin/busybox switch_root /sysroot /sbin/init diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index e81019243c..362db170ad 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -21,12 +21,12 @@ ################################################################################ # 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 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 mount -n -t devpts -o gid=5,mode=620 none /dev/pts