mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
busybox-initramfs
- change mode from busybox to 4755 - various cleanups - umount dev before switching root
This commit is contained in:
parent
7595e84d51
commit
29999a58c7
@ -7,5 +7,6 @@ PKG_DIR=`find $PACKAGES -type d -name $1`
|
|||||||
|
|
||||||
mkdir -p $INSTALL/initramfs
|
mkdir -p $INSTALL/initramfs
|
||||||
cp -PR $BUILD/busybox*/_install-initramfs/* $INSTALL/initramfs
|
cp -PR $BUILD/busybox*/_install-initramfs/* $INSTALL/initramfs
|
||||||
|
chmod 4755 $INSTALL/initramfs/bin/busybox
|
||||||
|
|
||||||
cp $PKG_DIR/scripts/init $INSTALL/initramfs
|
cp $PKG_DIR/scripts/init $INSTALL/initramfs
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
/bin/busybox clear
|
|
||||||
|
|
||||||
/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
|
||||||
|
|
||||||
@ -79,6 +77,7 @@
|
|||||||
/bin/busybox mount --bind /flash /sysroot/flash
|
/bin/busybox mount --bind /flash /sysroot/flash
|
||||||
/bin/busybox mount --bind /storage /sysroot/storage
|
/bin/busybox mount --bind /storage /sysroot/storage
|
||||||
/bin/busybox umount /proc
|
/bin/busybox umount /proc
|
||||||
|
/bin/busybox umount /dev
|
||||||
|
|
||||||
exec /bin/busybox switch_root /sysroot /sbin/init.system
|
exec /bin/busybox switch_root /sysroot /sbin/init.system
|
||||||
# exec /bin/busybox switch_root /sysroot /sbin/cinit
|
# exec /bin/busybox switch_root /sysroot /sbin/cinit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user