diff mbox series

[isar-cip-core] squashfs: Fix rebuild

Message ID 4e20dd15-8c00-140f-a1c7-a42d27bf178c@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series [isar-cip-core] squashfs: Fix rebuild | expand

Commit Message

Jan Kiszka June 21, 2022, 9:32 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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@siemens.com>
---
 classes/squashfs.bbclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

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}
 }