Bug 15331 - LIVE_ROOTFS_TYPE does not work with tar.*/ext?.*/...
Summary: LIVE_ROOTFS_TYPE does not work with tar.*/ext?.*/...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 5.0 M3
Assignee: Ludovic Jozeau
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-12-21 13:04 UTC by Ludovic Jozeau
Modified: 2024-02-22 16:07 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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