diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2025-05-30 14:37:41 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-02 22:17:24 +0100 |
commit | c9cb41e293556e64bb8adb0fabd6b9608acb3211 (patch) | |
tree | cba06e78ce06c3911416717783a965a9ecc54c5a /scripts/lib/wic/plugins/source/bootimg-efi.py | |
parent | b2045764037c6a0dfed7a4563e588a15c1cdb7fe (diff) | |
download | poky-c9cb41e293556e64bb8adb0fabd6b9608acb3211.tar.gz |
wic bootimg-efi.py: fail build if no binaries installed
With systemd-boot, some builds included correct EFI
bootloader binaries and some not. Thus some builds
booted and some not. Check that some boot binary
was installed so that build fails if none were installed.
(From OE-Core rev: 93fad905b9d5f5cee89408901e4be1630955ab75)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-efi.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 96c710bf77..38da5080fb 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -367,6 +367,13 @@ class BootimgEFIPlugin(SourcePlugin): | |||
367 | else: | 367 | else: |
368 | raise WicError("unrecognized bootimg-efi loader: %s" % | 368 | raise WicError("unrecognized bootimg-efi loader: %s" % |
369 | source_params['loader']) | 369 | source_params['loader']) |
370 | |||
371 | # must have installed at least one EFI bootloader | ||
372 | out = glob(os.path.join(hdddir, 'EFI', 'BOOT', 'boot*.efi')) | ||
373 | logger.debug("Installed EFI loader files:\n%s" % out) | ||
374 | if not out: | ||
375 | raise WicError("No EFI loaders installed to ESP partition. Check that grub-efi, systemd-boot or similar is installed.") | ||
376 | |||
370 | except KeyError: | 377 | except KeyError: |
371 | raise WicError("bootimg-efi requires a loader, none specified") | 378 | raise WicError("bootimg-efi requires a loader, none specified") |
372 | 379 | ||