uki.bbclass: fix building of UKI images with multiple initramfs fstypes
PATCH v2 1/1 uki.bbclass: fix building of UKI images with multiple initramfs fstypes
If INITRAMFS_FSTYPES contains more than one entry, ukify build command will fail as INITRD_ARCHIVE will contain extra strings. Use only the first initramfs type, letting the user to specify other fstypes in INITRAMFS_FSTYPES.
--- meta/classes-recipe/uki.bbclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
meta/classes-recipe/uki.bbclass +2 -3
@@ -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) ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image, initramfs_image)) # kernel
Signature · 1 line
2.47.3
Quoted 6 lines · Dmitry Baryshkov via lists.openembedded.org
If
INITRAMFS_FSTYPEScontains more than one entry, ukify build command will fail asINITRD_ARCHIVEwill contain extra strings. Use only the first initramfs type, letting the user to specify other fstypes inINITRAMFS_FSTYPES.Signed-off-by Dmitry Baryshkov <[email protected]>
Hi Dmitry,
The implementation now looks good. The commit message needs a little rewording, we need to note that INITRD_ARCHIVE is now gone so that it's easier to notice this change when we're compiling release notes.
Best regards,
Signature · 1 line
Paul Barker