mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +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=*)
|
||||||
disk="${arg#*=}"
|
disk="${arg#*=}"
|
||||||
;;
|
;;
|
||||||
|
installer)
|
||||||
|
INIT_ARGS="$INIT_ARGS --unit=installer.target"
|
||||||
|
;;
|
||||||
debugging)
|
debugging)
|
||||||
DEBUG=yes
|
DEBUG=yes
|
||||||
|
INIT_ARGS="$INIT_ARGS --log-level=debug"
|
||||||
;;
|
;;
|
||||||
bootchart)
|
bootchart)
|
||||||
BOOTCHART=yes
|
BOOTCHART=yes
|
||||||
@ -87,6 +91,7 @@
|
|||||||
;;
|
;;
|
||||||
progress)
|
progress)
|
||||||
PROGRESS=yes
|
PROGRESS=yes
|
||||||
|
INIT_ARGS="$INIT_ARGS --show-status=1"
|
||||||
;;
|
;;
|
||||||
nosplash)
|
nosplash)
|
||||||
SPLASH=no
|
SPLASH=no
|
||||||
@ -538,7 +543,7 @@
|
|||||||
mount --move /storage /sysroot/storage
|
mount --move /storage /sysroot/storage
|
||||||
fi
|
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
|
if [ "${boot%%=*}" = "FILE" ]; then
|
||||||
@ -565,6 +570,6 @@
|
|||||||
/bin/busybox mount --move /sys /sysroot/sys
|
/bin/busybox mount --move /sys /sysroot/sys
|
||||||
|
|
||||||
# switch to new sysroot and start real init
|
# 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"
|
error "switch_root" "Error in initramfs. Could not switch to new root"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user