mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox-initramfs: enable systemd as default init system
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0337406c95
commit
b1198e1698
@ -76,8 +76,12 @@
|
||||
disk=*)
|
||||
disk="${arg#*=}"
|
||||
;;
|
||||
installer)
|
||||
INIT_ARGS="$INIT_ARGS --unit=installer.target"
|
||||
;;
|
||||
debugging)
|
||||
DEBUG=yes
|
||||
INIT_ARGS="$INIT_ARGS --log-level=debug"
|
||||
;;
|
||||
bootchart)
|
||||
BOOTCHART=yes
|
||||
@ -87,6 +91,7 @@
|
||||
;;
|
||||
progress)
|
||||
PROGRESS=yes
|
||||
INIT_ARGS="$INIT_ARGS --show-status=1"
|
||||
;;
|
||||
nosplash)
|
||||
SPLASH=no
|
||||
@ -538,7 +543,7 @@
|
||||
mount --move /storage /sysroot/storage
|
||||
fi
|
||||
|
||||
[ -f "/sysroot/sbin/init" ] || error "final_check" "Could not find system."
|
||||
[ -f "/sysroot/lib/systemd/systemd" ] || error "final_check" "Could not find system."
|
||||
}
|
||||
|
||||
if [ "${boot%%=*}" = "FILE" ]; then
|
||||
@ -565,6 +570,6 @@
|
||||
/bin/busybox mount --move /sys /sysroot/sys
|
||||
|
||||
# switch to new sysroot and start real init
|
||||
exec /bin/busybox switch_root /sysroot /sbin/init
|
||||
exec /bin/busybox switch_root /sysroot /lib/systemd/systemd $INIT_ARGS
|
||||
|
||||
error "switch_root" "Error in initramfs. Could not switch to new root"
|
||||
|
Loading…
x
Reference in New Issue
Block a user