mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox-initramfs: dont unmount some special filesystems here and mount again in OS, insteaded move mountpoints
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
242993a10f
commit
5d1a99441b
@ -174,9 +174,9 @@ REBOOT="0"
|
||||
/bin/busybox mount --move /storage /sysroot/storage
|
||||
fi
|
||||
|
||||
# unmount all other filesystems
|
||||
/bin/busybox umount /dev
|
||||
/bin/busybox umount /proc
|
||||
# move some special filesystems
|
||||
/bin/busybox mount --move /dev /sysroot/dev
|
||||
/bin/busybox mount --move /proc /sysroot/proc
|
||||
|
||||
# switch to new sysroot and start real init
|
||||
exec /bin/busybox switch_root /sysroot /sbin/init
|
||||
|
@ -21,12 +21,12 @@
|
||||
################################################################################
|
||||
|
||||
# mounting needed special filesystems
|
||||
mount -n -t proc none /proc
|
||||
# mount -n -t proc none /proc # mounted in initramfs
|
||||
mount -n -t sysfs none /sys
|
||||
|
||||
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
|
||||
|
||||
mount -n -t devtmpfs none /dev
|
||||
# mount -n -t devtmpfs none /dev # mounted in initramfs
|
||||
|
||||
mkdir -p /dev/pts
|
||||
mount -n -t devpts -o gid=5,mode=620 none /dev/pts
|
||||
|
Loading…
x
Reference in New Issue
Block a user