diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-09-05 14:57:40 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-08 18:02:39 +0100 |
| commit | c1d4291a9dec885a820c377ebc373e9fe9c01189 (patch) | |
| tree | 2fa86ced0f0e6d99b7c9e5c51cfe47b4adecd41e /meta | |
| parent | 6396ab96d5ffa12e9065560c30fd7737bc827f7a (diff) | |
| download | poky-c1d4291a9dec885a820c377ebc373e9fe9c01189.tar.gz | |
grub-efi.bbclass: fix racing issue on grub-efi image
In recipe grub-efi, the deploy task installed grub-efi image to deploy dir.
In image-live.bbclass, the do_bootimg task called build_iso -> efi_iso_populate
-> efi_populate.
In image-live.bbclass, the do_bootimg task called build_hddimg -> efi_hddimg_populate
-> efi_populate.
In grub-efi.bbclass, efi_populate called efi_populate_common for grub-efi to
installed grub-efi image from deploy dir to ISO/HDDDIR.
Explicitly make do_bootimg depend on grub-efi:deploy otherwise a racing issue
on grub-efi image in deploy dir
...
|DEBUG: Executing shell function build_iso
|NOTE: Trying to install tmp/deploy/images/qemux86-64/bzImage as tmp/work/qemux86_64-wrs-linux/
wrlinux-image-installer/1.0/sources/wrlinux-image-installer-1.0/iso/bzImage
|install: cannot stat 'tmp/deploy/images/qemux86-64/grub-efi-bootx64.efi': No such file or directory
|WARNING: tmp/work/qemux86_64-wrs-linux/wrlinux-image-installer/1.0/temp/run.build_iso.954273:419 exit 1 from
'install -m 0644 tmp/deploy/images/qemux86-64/$2-bootx64.efi ${DEST}/EFI/BOOT/bootx64.efi'
...
(From OE-Core rev: bf0a53af7801a13b39734c3d720f127f212d08f1)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/grub-efi.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/grub-efi.bbclass b/meta/classes-recipe/grub-efi.bbclass index 4afd12195f..34bcbc53e6 100644 --- a/meta/classes-recipe/grub-efi.bbclass +++ b/meta/classes-recipe/grub-efi.bbclass | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | inherit grub-efi-cfg | 7 | inherit grub-efi-cfg |
| 8 | require conf/image-uefi.conf | 8 | require conf/image-uefi.conf |
| 9 | 9 | ||
| 10 | # Assure the existence of grub-efi image in deploy dir | ||
| 11 | do_bootimg[depends] += "grub-efi:do_deploy" | ||
| 12 | |||
| 10 | efi_populate() { | 13 | efi_populate() { |
| 11 | efi_populate_common "$1" grub-efi | 14 | efi_populate_common "$1" grub-efi |
| 12 | 15 | ||
