Skip to contentSkip to conversation

image.bbclass: Set ROOTFS_RO_UNNEEDED correctly

PATCH New David Vincent 1 participant 1 message Apr 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.bbclass: Set ROOTFS_RO_UNNEEDED correctly

Use a weak assignment for ROOTFS_RO_UNNEEDED to let users define their own list overriding defaults.

---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
index 405fd73c04..58cd608d14 100644
@@ -33,7 +33,7 @@ ROOTFS_BOOTSTRAP_INSTALL = "run-postinsts"
 
 # These packages will be removed from a read-only rootfs after all other
 # packages have been installed
-ROOTFS_RO_UNNEEDED = "update-rc.d base-passwd shadow ${VIRTUAL-RUNTIME_update-alternatives} ${ROOTFS_BOOTSTRAP_INSTALL}"
+ROOTFS_RO_UNNEEDED ??= "update-rc.d base-passwd shadow ${VIRTUAL-RUNTIME_update-alternatives} ${ROOTFS_BOOTSTRAP_INSTALL}"
 
 # packages to install from features
 FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
Signature · 1 line
2.12.2