diff mbox series

[isar-cip-core,3/4] avoid use of sudo when creating squashfs

Message ID 20231008031529.1338834-4-felix.moessbauer@siemens.com (mailing list archive)
State Superseded
Headers show
Series make compatible with latest ISAR revision | expand

Commit Message

Felix Moessbauer Oct. 8, 2023, 3:15 a.m. UTC
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 classes/squashfs.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/squashfs.bbclass b/classes/squashfs.bbclass
index bf72133..f57af7e 100644
--- a/classes/squashfs.bbclass
+++ b/classes/squashfs.bbclass
@@ -51,7 +51,7 @@  python __anonymous() {
 IMAGE_CMD:squashfs[depends] = "${PN}:do_transform_template"
 IMAGE_CMD:squashfs[vardepsexclude] += "SQUASHFS_CREATION_LIMITS"
 IMAGE_CMD:squashfs() {
-    ${SUDO_CHROOT} /bin/mksquashfs \
+    imager_run -p -d ${PP_WORK} -- /bin/mksquashfs \
         '${SQUASHFS_CONTENT}' '${IMAGE_FILE_CHROOT}' \
         -noappend ${SQUASHFS_CREATION_LIMITS} ${SQUASHFS_CREATION_ARGS}
 }