mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user