mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
busybox-initramfs:
- unmount all no more needed filesystems (will be mounted again from system) - cosmetics
This commit is contained in:
parent
1aa1806a5c
commit
f42c09f10f
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# mount all needed special filesystems
|
||||
/bin/busybox mount -t proc none /proc
|
||||
/bin/busybox mount -t devtmpfs none /dev
|
||||
/bin/busybox mount -t sysfs none /sys
|
||||
@ -94,16 +95,17 @@
|
||||
debug_shell
|
||||
fi
|
||||
|
||||
$IONICE /bin/busybox mount --move /proc /sysroot/proc
|
||||
$IONICE /bin/busybox mount --move /sys /sysroot/sys
|
||||
$IONICE /bin/busybox mount --move /dev /sysroot/dev
|
||||
$IONICE /bin/busybox mount --move /flash /sysroot/flash
|
||||
$IONICE /bin/busybox mount --move /storage /sysroot/storage
|
||||
# move /flash and /storage to /sysroot
|
||||
/bin/busybox mount --move /flash /sysroot/flash
|
||||
/bin/busybox mount --move /storage /sysroot/storage
|
||||
|
||||
$IONICE /bin/busybox mkdir /sysroot/storage/dev/pts
|
||||
$IONICE /bin/busybox mount --move /dev/pts /sysroot/storage/dev/pts
|
||||
# unmount all other filesystems
|
||||
/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"
|
||||
debug_shell
|
||||
|
Loading…
x
Reference in New Issue
Block a user