Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Paul Barker" <paul@pbarker.dev>
To: "Ricardo Salveti" <ricardo.salveti@oss.qualcomm.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v2] uki.bbclass: allow overriding the embedded os-release
Date: Fri, 04 Dec 2026 13:36:13 +0000	[thread overview]
Message-ID: <DNBZLGBZ1K6W.2OSS4CLU1W2BP@pbarker.dev> (raw)
In-Reply-To: <20261129222605.2163613-1-ricardo.salveti@oss.qualcomm.com>

On Sun Nov 29, 2026 at 10:26 PM GMT, Ricardo Salveti wrote:
> uki.bbclass copies the os-release file from the recipe sysroot into the
> UKI (its .osrel section), and there is no way to use a different file:
> the class always passes --os-release to ukify, which takes precedence
> over UKI_CONFIG_FILE.
>
> systemd-boot boots the UKIs placed in /EFI/Linux on the EFI system
> partition without any loader entry file; the Boot Loader Specification
> calls these "Type #2" entries [1]. It reads the os-release embedded in
> each UKI to name it in the menu and to order them: UKIs of the same OS
> are sorted by their version fields (VERSION, VERSION_ID, IMAGE_VERSION
> or BUILD_ID), newest first, and by file name only when those are equal,
> and the first one boots by default. A layer that installs several such
> UKIs and sets their order through the file names therefore needs to
> embed an os-release without the version fields, while the rootfs keeps
> the full one.
>
> Add UKI_OS_RELEASE, the os-release file embedded in the UKI. It
> defaults to the os-release from the recipe sysroot, so nothing changes
> unless a layer sets it.
>
> [1] https://uapi-group.org/specifications/specs/boot_loader_specification/#type-2-efi-unified-kernel-images
>
> AI-Generated: Uses Claude Code (Claude Opus 5.5)
> Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>

Hi Ricardo,

This patch has been merged. Would it be possible to follow up with some
test cases? We don't need to boot test the resulting UKI files, just
ensure that they get the right data.

Best regards,

-- 
Paul Barker


      reply	other threads:[~2026-12-04 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 16:57 [PATCH] uki.bbclass: allow overriding the embedded os-release Ricardo Salveti
2026-11-29 20:15 ` Paul Barker
2026-11-29 22:25   ` Ricardo Salveti
2026-11-29 22:26 ` [PATCH v2] " Ricardo Salveti
2026-12-04 13:36   ` Paul Barker [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=DNBZLGBZ1K6W.2OSS4CLU1W2BP@pbarker.dev \
    --to=paul@pbarker.dev \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ricardo.salveti@oss.qualcomm.com \
    /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