busybox-initramfs: fix init script

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-12 19:56:55 +02:00
parent 6f92ac534d
commit 3f879ab8d1

View File

@ -172,15 +172,8 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
[ ! -e /sysroot/sbin/init ] && /bin/busybox usleep 1000000
<<<<<<< HEAD
[ ${retry_nr} -gt 0 ]
done
=======
if [ -n "$disk" ]; then
mount_part "$disk" "/storage" "rw,noatime"
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"
update "System" "$IMAGE_SYSTEM" "/flash/$IMAGE_SYSTEM"
>>>>>>> 32562d4fa964979f0879f096451a8bbc20b9f7d9
if [ ! -e /sysroot/sbin/init ]; then
error "INIT_2" "Could not mount NBD root from $NBD_ROOT_SERVER port $NBD_ROOT_PORT"
@ -217,8 +210,6 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
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..." && \
/bin/busybox reboot
@ -235,6 +226,10 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
# move /flash and /storage to /sysroot
/bin/busybox mount --move /flash /sysroot/flash
if [ -n "$disk" ]; then
/bin/busybox mount --move /storage /sysroot/storage
fi
}
if [ -z "$NETBOOT" ]; then
@ -243,17 +238,7 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
mount_nbd
fi
<<<<<<< HEAD
=======
# move /flash and /storage to /sysroot
/bin/busybox mount --move /flash /sysroot/flash
if [ -n "$disk" ]; then
/bin/busybox mount --move /storage /sysroot/storage
fi
>>>>>>> 32562d4fa964979f0879f096451a8bbc20b9f7d9
# unmount all other filesystems
# unmount all other filesystems
/bin/busybox umount /dev
/bin/busybox umount /proc
/bin/busybox umount /sys