public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Fix GRUB booting on amd64 Ubuntu targets
@ 2024-01-03  8:30 Anton Mikanovich
  2024-01-09  8:08 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2024-01-03  8:30 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

GRUB bootloader requires linuxefi module to be installed on Ubuntu
targets under amd64 architecture.

Otherwise following error will occur:

error: file `/EFI/BOOT/x86_64-efi/linuxefi.mod' not found.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
index 139ef466..b934d0c7 100644
--- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
+++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
@@ -411,6 +411,8 @@ class BootimgEFIPlugin(SourcePlugin):
                     grub_target = 'x86_64-efi'
                     grub_image = "bootx64.efi"
                     grub_modules = "multiboot efi_uga iorw ata "
+                    if get_bitbake_var("DISTRO").startswith("ubuntu"):
+                        grub_modules += "linuxefi "
                 elif distro_arch == "i386":
                     grub_target = 'i386-efi'
                     grub_image = "bootia32.efi"
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix GRUB booting on amd64 Ubuntu targets
  2024-01-03  8:30 [PATCH] Fix GRUB booting on amd64 Ubuntu targets Anton Mikanovich
@ 2024-01-09  8:08 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2024-01-09  8:08 UTC (permalink / raw)
  To: Anton Mikanovich, isar-users

On Wed, 2024-01-03 at 10:30 +0200, Anton Mikanovich wrote:
> GRUB bootloader requires linuxefi module to be installed on Ubuntu
> targets under amd64 architecture.
> 
> Otherwise following error will occur:
> 
> error: file `/EFI/BOOT/x86_64-efi/linuxefi.mod' not found.
> 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> index 139ef466..b934d0c7 100644
> --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> @@ -411,6 +411,8 @@ class BootimgEFIPlugin(SourcePlugin):
>                      grub_target = 'x86_64-efi'
>                      grub_image = "bootx64.efi"
>                      grub_modules = "multiboot efi_uga iorw ata "
> +                    if
> get_bitbake_var("DISTRO").startswith("ubuntu"):
> +                        grub_modules += "linuxefi "
>                  elif distro_arch == "i386":
>                      grub_target = 'i386-efi'
>                      grub_image = "bootia32.efi"
> -- 
> 2.34.1
> 

Applied to next.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-09  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03  8:30 [PATCH] Fix GRUB booting on amd64 Ubuntu targets Anton Mikanovich
2024-01-09  8:08 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox