busybox-initramfs:

- unmount all no more needed filesystems (will be mounted again from system)
- cosmetics
This commit is contained in:
Stephan Raue 2010-05-18 14:09:09 +02:00
parent 1aa1806a5c
commit f42c09f10f

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# mount all needed special filesystems
/bin/busybox mount -t proc none /proc /bin/busybox mount -t proc none /proc
/bin/busybox mount -t devtmpfs none /dev /bin/busybox mount -t devtmpfs none /dev
/bin/busybox mount -t sysfs none /sys /bin/busybox mount -t sysfs none /sys
@ -94,16 +95,17 @@
debug_shell debug_shell
fi fi
$IONICE /bin/busybox mount --move /proc /sysroot/proc # move /flash and /storage to /sysroot
$IONICE /bin/busybox mount --move /sys /sysroot/sys /bin/busybox mount --move /flash /sysroot/flash
$IONICE /bin/busybox mount --move /dev /sysroot/dev /bin/busybox mount --move /storage /sysroot/storage
$IONICE /bin/busybox mount --move /flash /sysroot/flash
$IONICE /bin/busybox mount --move /storage /sysroot/storage
$IONICE /bin/busybox mkdir /sysroot/storage/dev/pts # unmount all other filesystems
$IONICE /bin/busybox mount --move /dev/pts /sysroot/storage/dev/pts /bin/busybox umount /proc
/bin/busybox umount /sys
/bin/busybox umount /dev/pts
/bin/busybox umount /dev
exec $IONICE /bin/busybox switch_root /sysroot /sbin/init exec /bin/busybox switch_root /sysroot /sbin/init
error "INIT_3" "Error in initramfs. Could not switch to new root" error "INIT_3" "Error in initramfs. Could not switch to new root"
debug_shell debug_shell