mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox:
- move start of bootchart to initramfs (enable bootchart loggin with "bootchart" as kernel line option)
This commit is contained in:
parent
a7a677d276
commit
5416875f5f
@ -21,6 +21,9 @@
|
|||||||
splash)
|
splash)
|
||||||
SPLASH=yes
|
SPLASH=yes
|
||||||
;;
|
;;
|
||||||
|
bootchart)
|
||||||
|
BOOTCHART=yes
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -86,9 +89,14 @@
|
|||||||
/bin/busybox mount --move /flash /sysroot/flash
|
/bin/busybox mount --move /flash /sysroot/flash
|
||||||
/bin/busybox mount --move /storage /sysroot/storage
|
/bin/busybox mount --move /storage /sysroot/storage
|
||||||
|
|
||||||
# exec /bin/busybox switch_root /sysroot /sbin/init.system
|
if [ "$BOOTCHART" = "yes" -a -f "/sysroot/sbin/bootchartd" ] ; then
|
||||||
exec /bin/busybox chroot /sysroot /sbin/init.system
|
progress "Starting Bootchart logging"
|
||||||
# exec /bin/busybox switch_root /sysroot /sbin/cinit
|
mkdir -p /sysroot/storage/.bootchart
|
||||||
|
exec /bin/busybox switch_root /sysroot \
|
||||||
|
/sbin/bootchartd -o /storage/.bootchart
|
||||||
|
else
|
||||||
|
exec /bin/busybox switch_root /sysroot /sbin/init
|
||||||
|
fi
|
||||||
|
|
||||||
error "INIT_3" "Error in initramfs. Could not switch to new root"
|
error "INIT_3" "Error in initramfs. Could not switch to new root"
|
||||||
debug_shell
|
debug_shell
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# start bootchartd if avaible
|
|
||||||
if [ -f /sbin/bootchartd ]; then
|
|
||||||
mkdir -p /storage/bootchart
|
|
||||||
/sbin/bootchartd -o /storage/bootchart &
|
|
||||||
fi
|
|
||||||
|
|
||||||
# read config
|
# read config
|
||||||
. /etc/sysconfig
|
. /etc/sysconfig
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user