From afc0bc6ef5a26beabed579c614ff16218306ca28 Mon Sep 17 00:00:00 2001 From: Mike Engel Date: Tue, 10 Jan 2023 11:02:11 +0100 Subject: [PATCH] swupdate: remove post installation scripts when building squashfs This commit removes the on-target post installation function for read-only rootfs, as it will fail trying to edit files. Signed-off-by: Mike Engel --- .../recipes-support/swupdate/swupdate_2022.05.bbappend | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend index ca0286d9f..feaaeeb6e 100644 --- a/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend +++ b/meta-digi-dey/recipes-support/swupdate/swupdate_2022.05.bbappend @@ -34,3 +34,5 @@ pkg_postinst_ontarget:${PN}() { [ "$(fw_printenv -n dualboot 2>/dev/null)" != "yes" ] && update-rc.d -f swupdate remove fi } + +inherit ${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "remove-pkg-postinst-ontarget", "", d)}