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 <Mike.Engel@digi.com>
This commit is contained in:
Mike Engel 2023-01-10 11:02:11 +01:00
parent 35b56653cd
commit afc0bc6ef5
1 changed files with 2 additions and 0 deletions

View File

@ -34,3 +34,5 @@ pkg_postinst_ontarget:${PN}() {
[ "$(fw_printenv -n dualboot 2>/dev/null)" != "yes" ] && update-rc.d -f swupdate remove [ "$(fw_printenv -n dualboot 2>/dev/null)" != "yes" ] && update-rc.d -f swupdate remove
fi fi
} }
inherit ${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "remove-pkg-postinst-ontarget", "", d)}