public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Zhihang Wei <wzh@ilbers.de>
To: Uladzimir Bely <ubely@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH] Fix building qemuamd64-sid
Date: Thu, 26 Feb 2026 17:11:02 +0100	[thread overview]
Message-ID: <b29c447e-5cbe-4a45-a923-6f5ff46a5f6d@ilbers.de> (raw)
In-Reply-To: <20260224120117.1135921-1-ubely@ilbers.de>

Applied to next, thanks.

Zhihang

On 2/24/26 13:01, Uladzimir Bely wrote:
> In sid, package grub-efi-amd64-bin deprecates "efi_uga.mod" so
> exclude it for sid to fix wic image creation.
>
> Fixes:
>
> ERROR: _exec_cmd: grub-mkimage -p /EFI/BOOT -O x86_64-efi -o /tmp/isar-image-base-debian-sid-qemuamd64.wic/tmp.wic.47tg4qtv/hdd/boot/EFI/BOOT/bootx64.efi part_gpt part_msdos ntfs ntfscomp fat ext2 normal chain boot configfile linux search efi_gop font gfxterm gfxmenu terminal minicmd test loadenv echo help reboot serial terminfo iso9660 loopback tar memdisk ls search_fs_uuid udf btrfs xfs lvm reiserfs regexp multiboot efi_uga iorw ata  returned '1' instead of 0
> output: grub-mkimage: error: cannot open `/usr/lib/grub/x86_64-efi/efi_uga.mod': No such file or directory.
> ---
>   .../scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 10 ++++++++--
>   1 file changed, 8 insertions(+), 2 deletions(-)
>
> 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 ed3bed88..6bc78d42 100644
> --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
> @@ -446,11 +446,17 @@ class BootimgEFIPlugin(SourcePlugin):
>                   if not distro_arch:
>                       raise WicError("Couldn't find target architecture")
>   
> +                distro = get_bitbake_var("DISTRO")
> +                if not distro:
> +                    raise WicError("Couldn't find target distro")
> +
>                   if distro_arch == "amd64":
>                       grub_target = 'x86_64-efi'
>                       grub_image = "bootx64.efi"
> -                    grub_modules = "multiboot efi_uga iorw ata "
> -                    if get_bitbake_var("DISTRO").startswith("ubuntu") and \
> +                    grub_modules = "multiboot iorw ata "
> +                    if "sid" not in distro:
> +                        grub_modules += "efi_uga "
> +                    if distro.startswith("ubuntu") and \
>                           os.path.exists('/usr/lib/grub/x86_64-efi/linuxefi.mod'):
>                           grub_modules += "linuxefi "
>                   elif distro_arch == "i386":

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/b29c447e-5cbe-4a45-a923-6f5ff46a5f6d%40ilbers.de.

      reply	other threads:[~2026-02-26 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 12:01 Uladzimir Bely
2026-02-26 16:11 ` Zhihang Wei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b29c447e-5cbe-4a45-a923-6f5ff46a5f6d@ilbers.de \
    --to=wzh@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=ubely@ilbers.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox