mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox-initramfs:
- add DEVPTS support - mount /dev/pts at boottime
This commit is contained in:
parent
1e02f89f91
commit
fe8407d1d2
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Busybox version: 1.16.1
|
# Busybox version: 1.16.1
|
||||||
# Tue Apr 27 18:57:48 2010
|
# Mon May 17 12:28:14 2010
|
||||||
#
|
#
|
||||||
CONFIG_HAVE_DOT_CONFIG=y
|
CONFIG_HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ CONFIG_FEATURE_VERBOSE_USAGE=y
|
|||||||
# CONFIG_FEATURE_ASSUME_UNICODE is not set
|
# CONFIG_FEATURE_ASSUME_UNICODE is not set
|
||||||
# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
|
# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
|
||||||
# CONFIG_LONG_OPTS is not set
|
# CONFIG_LONG_OPTS is not set
|
||||||
# CONFIG_FEATURE_DEVPTS is not set
|
CONFIG_FEATURE_DEVPTS=y
|
||||||
# CONFIG_FEATURE_CLEAN_UP is not set
|
# CONFIG_FEATURE_CLEAN_UP is not set
|
||||||
# CONFIG_FEATURE_PIDFILE is not set
|
# CONFIG_FEATURE_PIDFILE is not set
|
||||||
# CONFIG_FEATURE_SUID is not set
|
# CONFIG_FEATURE_SUID is not set
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
/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
|
||||||
|
|
||||||
|
mkdir /dev/pts
|
||||||
|
/bin/busybox mount -t devpts -o gid=5,mode=620 none /dev/pts
|
||||||
|
|
||||||
# BOOT=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*boot=// ; s/ .*//'`
|
# BOOT=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*boot=// ; s/ .*//'`
|
||||||
# DISK=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*disk=// ; s/ .*//'`
|
# DISK=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*disk=// ; s/ .*//'`
|
||||||
UPDATE_DIR=/storage/.update
|
UPDATE_DIR=/storage/.update
|
||||||
@ -97,6 +100,9 @@
|
|||||||
$IONICE /bin/busybox mount --move /flash /sysroot/flash
|
$IONICE /bin/busybox mount --move /flash /sysroot/flash
|
||||||
$IONICE /bin/busybox mount --move /storage /sysroot/storage
|
$IONICE /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
|
||||||
|
|
||||||
exec $IONICE /bin/busybox switch_root /sysroot /sbin/init
|
exec $IONICE /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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user