Skip to contentSkip to conversation

overlayfs-etc: Add template file dependency

PATCH New [email protected] 1 participant 1 message Mar 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 overlayfs-etc: Add template file dependency

From: Vyacheslav Yurkov <[email protected]>

It case a user uses own template file, its changes have to be propagated to the image.

Fixes [YOCTO #16193]

Cc Wojciech Niziński <[email protected]>
---
 meta/classes-recipe/overlayfs-etc.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/overlayfs-etc.bbclass +2 -0
index d339fbbeee..6ee97fb30c 100644
@@ -43,6 +43,8 @@ OVERLAYFS_ETC_INIT_TEMPLATE ??= "${COREBASE}/meta/files/overlayfs-etc-preinit.sh
 OVERLAYFS_ETC_EXPOSE_LOWER ??= "0"
 OVERLAYFS_ETC_CREATE_MOUNT_DIRS ??= "1"
 
+do_rootfs[file-checksums] += "${OVERLAYFS_ETC_INIT_TEMPLATE}:True"
+
 python create_overlayfs_etc_preinit() {
     overlayEtcMountPoint = d.getVar("OVERLAYFS_ETC_MOUNT_POINT")
     overlayEtcFsType = d.getVar("OVERLAYFS_ETC_FSTYPE")