]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic bootimg-efi.py: change UKI support from wic plugin to uki.bbclass
authorMikko Rapeli <mikko.rapeli@linaro.org>
Wed, 23 Oct 2024 12:08:33 +0000 (15:08 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Oct 2024 14:10:25 +0000 (15:10 +0100)
commit725fed6ea40c7443b5e0e69dc1dd9c38ac814c56
treee178b6ec39b4a194b3f2cac396f51b741781eb05
parentcedcd25c5e3cd002dd34651c182193731d7c964b
wic bootimg-efi.py: change UKI support from wic plugin to uki.bbclass

Remove custom wic plugin implementation and use systemd ukify reference
implementation when generating UKI images. Fail if users still have
create-unified-kernel-image in wic image config. uki.bbclass use is
detected from IMAGE_CLASSES variable ("inherit uki" in image
recipe) so export that to wic plugins.

If UKI is used, then only generate a minimal loader config for
systemd-boot which basically just sets a timeout. Also set 5 second
timeout by default instead of failing if wic bootloader config is
missing. Boot menu is generated at runtime based on UKI binaries
found from ESP partition.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image_types_wic.bbclass
scripts/lib/wic/plugins/source/bootimg-efi.py