[isar-cip-core][PATCH] squashfs: Fix rebuild


Jan Kiszka
 

From: Jan Kiszka <jan.kiszka@...>

The wrong filename was used for deleting a preexisting image, and that
caused mksquashfs to refuse creating a new one. We can achieve this also
without an explicit rm, just by using -noappend.

Signed-off-by: Jan Kiszka <jan.kiszka@...>
---
classes/squashfs.bbclass | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/classes/squashfs.bbclass b/classes/squashfs.bbclass
index 376ddfe..99436bc 100644
--- a/classes/squashfs.bbclass
+++ b/classes/squashfs.bbclass
@@ -29,9 +29,7 @@ python __anonymous() {

IMAGE_CMD_squashfs[depends] = "${PN}:do_transform_template"
IMAGE_CMD_squashfs() {
- rm -f '${DEPLOY_DIR_IMAGE}/${SQUASHFS_IMAGE_FILE}'
-
${SUDO_CHROOT} /bin/mksquashfs \
'${SQUASHFS_CONTENT}' '${IMAGE_FILE_CHROOT}' \
- ${SQUASHFS_CREATION_ARGS}
+ -noappend ${SQUASHFS_CREATION_ARGS}
}
--
2.35.3

Join cip-dev@lists.cip-project.org to automatically receive all group messages.