Bug 16193

Summary: overlayfs-etc.bbclass should rebuild rootfs when template changed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Wojciech Niziński <niziak-yoctobug>
Component: oe-core otherAssignee: Vyacheslav Yurkov <uvv.mail>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: poky.bs.watcher, poky.watcher, randy.macleod, twoerner, uvv.mail
Version: 6.0   
Target Milestone: 6.0   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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?