From c71ea4e7314354e1ed403b05ef5521f92360bcbd Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 8 Sep 2011 04:28:43 +0200 Subject: [PATCH] busybox-initramfs: unmount /storage if not more needed, will be mounted again from system Signed-off-by: Stephan Raue --- packages/initramfs/sysutils/busybox-initramfs/scripts/init | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/initramfs/sysutils/busybox-initramfs/scripts/init b/packages/initramfs/sysutils/busybox-initramfs/scripts/init index b7036fc58c..b2823b9a99 100755 --- a/packages/initramfs/sysutils/busybox-initramfs/scripts/init +++ b/packages/initramfs/sysutils/busybox-initramfs/scripts/init @@ -145,6 +145,7 @@ REBOOT="0" mount_part "$disk" "/storage" "rw,noatime" update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL" update "System" "$IMAGE_SYSTEM" "/flash/$IMAGE_SYSTEM" + umount /storage if test "$REBOOT" -eq "1"; then echo "System reboots now..." && \ @@ -160,13 +161,9 @@ REBOOT="0" debug_shell fi -# move /flash and /storage to /sysroot +# move /flash to /sysroot /bin/busybox mount --move /flash /sysroot/flash - if [ -n "$disk" ]; then - /bin/busybox mount --move /storage /sysroot/storage - fi - # unmount all other filesystems /bin/busybox umount /dev /bin/busybox umount /proc