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:
Matthias Reichl
2021-02-03 12:28:48 +01:00
parent cf763e204f
commit 8f1344f6fd
8 changed files with 9 additions and 19 deletions

View File

@@ -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