mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Move kernel overlays setup to init
When running kernel-overlays-setup as a systemd service we have a short window where /lib/firmware isn't available. This causes drm edid override to occasionally fail if the edid file is requested between switching to sysroot and completion of the kernel-overlays-setup script. Setting up firmware and module overlays in init, before switching to sysroot, closes the gap and also has the benefit that we no longer need to care about the rather tedious systemd unit ordering. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
@@ -1113,8 +1113,12 @@ done
|
||||
/usr/bin/busybox mount --move /dev /sysroot/dev
|
||||
/usr/bin/busybox mount --move /proc /sysroot/proc
|
||||
/usr/bin/busybox mount --move /sys /sysroot/sys
|
||||
/usr/bin/busybox mount --move /run /sysroot/run
|
||||
/usr/bin/busybox rm -fr /tmp
|
||||
|
||||
# setup kernel overlays
|
||||
/usr/bin/busybox chroot /sysroot /usr/sbin/kernel-overlays-setup
|
||||
|
||||
# tell OE settings addon to disable updates
|
||||
if [ "$UPDATE_DISABLED" = "yes" ]; then
|
||||
echo "" > /sysroot/dev/.update_disabled
|
||||
|
||||
Reference in New Issue
Block a user