> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Dmitry Baryshkov via
> lists.openembedded.org
> Sent: Friday, January 23, 2026 14:18
> To: [email protected]
> Subject: [OE-core] [PATCH v3] uki.bbclass: drop INITRD_ARCHIVE, fixing 
> multiple
> INITRAMFS_FSTYPES
> 
> If INITRAMFS_FSTYPES contains more than one entry, ukify build command
> will fail as INITRD_ARCHIVE will contain extra strings. Drop
> INITRD_ARCHIVE and handle fstypes directly in do_uki(), letting the user
> to specify other fstypes in INITRAMFS_FSTYPES.
> 
> Signed-off-by: Dmitry Baryshkov <[email protected]>
> ---
>  meta/classes-recipe/uki.bbclass | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass
> index a2b1c8a82d6f..ea449540db66 100644
> --- a/meta/classes-recipe/uki.bbclass
> +++ b/meta/classes-recipe/uki.bbclass
> @@ -73,8 +73,6 @@ require ../conf/image-uefi.conf
> 
>  INITRAMFS_IMAGE ?= "core-image-minimal-initramfs"
> 
> -INITRD_ARCHIVE ?= "${INITRAMFS_IMAGE}-
> ${MACHINE}.${INITRAMFS_FSTYPES}"
> -
>  do_image_complete[depends] += "${INITRAMFS_IMAGE}:do_image_complete"
> 
>  UKIFY_CMD ?= "ukify build"
> @@ -127,7 +125,8 @@ python do_uki() {
>      ukify_cmd += " --stub %s" % (stub)
> 
>      # initrd
> -    initramfs_image = "%s" % (d.getVar('INITRD_ARCHIVE'))
> +    uki_fstype = d.getVar("INITRAMFS_FSTYPES").split()[0]
> +    initramfs_image = "%s-%s.%s" % (d.getVar('INITRAMFS_IMAGE'),
> d.getVar('MACHINE'), uki_fstype)

This will leave orphan INITRD_ARCHIVE variable defined.

Additionally, I think there is probably issue if someone sets non-default 
values for IMAGE_MACHINE_SUFFIX or INITRAMFS_IMAGE_NAME.
Isn't INITRAMFS_IMAGE_NAME the correct variable here instead of 
${INITRAMFS_IMAGE}-${MACHINE}?

Peter

>      ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image,
> initramfs_image))
> 
>      # kernel
> --
> 2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229889): 
https://lists.openembedded.org/g/openembedded-core/message/229889
Mute This Topic: https://lists.openembedded.org/mt/117417195/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to