Bug 16193 - overlayfs-etc.bbclass should rebuild rootfs when template changed
Summary: overlayfs-etc.bbclass should rebuild rootfs when template changed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 6.0
Hardware: All Multiple
: Medium enhancement
Target Milestone: 6.0
Assignee: Vyacheslav Yurkov
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-03-07 20:03 UTC by Wojciech Niziński
Modified: 2026-03-20 05:51 UTC (History)
5 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 Wojciech Niziński 2026-03-07 20:03:35 UTC
Hello. During usage of `overlayfs-etc.bbclass` with my own OVERLAYFS_ETC_INIT_TEMPLATE I found that changes in template file are not propagated to image. 
I think 

poky/meta/classes-recipe/overlayfs-etc.bbclass

should add track template file for changes:

do_rootfs[file-checksums] += '${@bb.utils.contains("IMAGE_FEATURES", "overlayfs-etc", "${OVERLAYFS_ETC_INIT_TEMPLATE}:True", "", d)}'
Comment 1 Trevor Woerner 2026-03-12 14:45:39 UTC
This fix looks correct; would you like to submit a patch to the mailing list?
Comment 2 Vyacheslav Yurkov 2026-03-12 18:25:11 UTC
Thanks for pointing this out!

The suggestion looks good with a small note. If it's already inside the class, then the 'contains' condition seems to be redundant and can be omitted. We can unconditionally depend on the template file.

Do you want to submit the patch yourself or should I?