Bug 15331

Summary: LIVE_ROOTFS_TYPE does not work with tar.*/ext?.*/...
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ludovic Jozeau <ludovic.jozeau+yocto-bug>
Component: deploymentAssignee: Ludovic Jozeau <ludovic.jozeau+yocto-bug>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ludovic.jozeau+yocto-bug, randy.macleod, yoann.congal
Version: unspecified   
Target Milestone: 5.0 M3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ludovic Jozeau 2023-12-21 13:04:08 UTC
When creating a live image (`IMAGE_FSTYPES += "iso"`) and setting `LIVE_ROOTFS_TYPE = "tar.xz"` along with `IMAGE_FSTYPES += "tar.xz"` the build throws an error:

`ERROR: Task do_bootimg in .../meta-custom/recipes-core/images/custom-image.bb depends upon non-existent task do_image_tar.xz in .../meta-custom/recipes-core/images/custom-image.bb`

When looking at image-live.bbclass we can see the culprit:

https://git.yoctoproject.org/poky/tree/meta/classes-recipe/image-live.bbclass?id=4a5ef39d8a6a18dc48f280fb52be1fc8bfac3799#n34

do_bootimg[depends] += "... \
                        d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_')) if d.getVar('ROOTFS') else ''} \
                        "

I think this line should truncate the .xz, .gz, ... part to depends on the actual task (do_image_tar, ...)

Something like: `d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_').split('.')[0]) if d.getVar('ROOTFS') else ''} \`
Comment 1 Ludovic Jozeau 2023-12-21 14:33:02 UTC
Patch send => https://lists.openembedded.org/g/openembedded-core/message/192828
Comment 2 Randy MacLeod 2023-12-21 15:46:04 UTC
Patch on list.
Comment 3 Yoann Congal 2024-01-23 14:39:29 UTC
Bulk move to Milestone 5.0 M3