busybox-initramfs: unmount /storage if not more needed, will be mounted again from system

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-08 04:28:43 +02:00
parent 266efcfea3
commit c71ea4e731

View File

@ -145,6 +145,7 @@ REBOOT="0"
mount_part "$disk" "/storage" "rw,noatime" mount_part "$disk" "/storage" "rw,noatime"
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL" update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"
update "System" "$IMAGE_SYSTEM" "/flash/$IMAGE_SYSTEM" update "System" "$IMAGE_SYSTEM" "/flash/$IMAGE_SYSTEM"
umount /storage
if test "$REBOOT" -eq "1"; then if test "$REBOOT" -eq "1"; then
echo "System reboots now..." && \ echo "System reboots now..." && \
@ -160,13 +161,9 @@ REBOOT="0"
debug_shell debug_shell
fi fi
# move /flash and /storage to /sysroot # move /flash to /sysroot
/bin/busybox mount --move /flash /sysroot/flash /bin/busybox mount --move /flash /sysroot/flash
if [ -n "$disk" ]; then
/bin/busybox mount --move /storage /sysroot/storage
fi
# unmount all other filesystems # unmount all other filesystems
/bin/busybox umount /dev /bin/busybox umount /dev
/bin/busybox umount /proc /bin/busybox umount /proc