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=yes
|
||||
;;
|
||||
bootchart)
|
||||
BOOTCHART=yes
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
@ -86,9 +89,14 @@
|
||||
/bin/busybox mount --move /flash /sysroot/flash
|
||||
/bin/busybox mount --move /storage /sysroot/storage
|
||||
|
||||
# exec /bin/busybox switch_root /sysroot /sbin/init.system
|
||||
exec /bin/busybox chroot /sysroot /sbin/init.system
|
||||
# exec /bin/busybox switch_root /sysroot /sbin/cinit
|
||||
if [ "$BOOTCHART" = "yes" -a -f "/sysroot/sbin/bootchartd" ] ; then
|
||||
progress "Starting Bootchart logging"
|
||||
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"
|
||||
debug_shell
|
||||
|
@ -1,11 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# start bootchartd if avaible
|
||||
if [ -f /sbin/bootchartd ]; then
|
||||
mkdir -p /storage/bootchart
|
||||
/sbin/bootchartd -o /storage/bootchart &
|
||||
fi
|
||||
|
||||
# read config
|
||||
. /etc/sysconfig
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user