* [PATCH 7/7] ubifs: Fix output files permissions
@ 2021-07-27 13:10 Anton Mikanovich
2021-08-04 12:09 ` Anton Mikanovich
0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2021-07-27 13:10 UTC (permalink / raw)
To: isar-users; +Cc: Anton Mikanovich
Need to change imager output files owner to the current user to make
them available outside Isar without sudo.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/classes/fit-img.bbclass | 1 +
meta/classes/ubi-img.bbclass | 1 +
meta/classes/ubifs-img.bbclass | 1 +
3 files changed, 3 insertions(+)
diff --git a/meta/classes/fit-img.bbclass b/meta/classes/fit-img.bbclass
index da8e1da..98ed8eb 100644
--- a/meta/classes/fit-img.bbclass
+++ b/meta/classes/fit-img.bbclass
@@ -23,6 +23,7 @@ do_fit_image() {
# Create fit image using buildchroot tools
sudo chroot ${BUILDCHROOT_DIR} /usr/bin/mkimage ${MKIMAGE_ARGS} \
-f '${PP_WORK}/${FIT_IMAGE_SOURCE}' '${PP_DEPLOY}/${FIT_IMAGE_FILE}'
+ sudo chown $(id -u):$(id -g) '${DEPLOY_DIR_IMAGE}/${FIT_IMAGE_FILE}'
image_undo_mounts
}
diff --git a/meta/classes/ubi-img.bbclass b/meta/classes/ubi-img.bbclass
index 0f4c4cb..5ce7686 100644
--- a/meta/classes/ubi-img.bbclass
+++ b/meta/classes/ubi-img.bbclass
@@ -26,6 +26,7 @@ do_ubi_image() {
# Create ubi image using buildchroot tools
sudo chroot ${BUILDCHROOT_DIR} /usr/sbin/ubinize ${UBINIZE_ARGS} \
-o '${PP_DEPLOY}/${UBI_IMAGE_FILE}' '${PP_WORK}/${UBINIZE_CFG}'
+ sudo chown $(id -u):$(id -g) '${DEPLOY_DIR_IMAGE}/${UBI_IMAGE_FILE}'
image_undo_mounts
}
diff --git a/meta/classes/ubifs-img.bbclass b/meta/classes/ubifs-img.bbclass
index 7d78a79..74a167a 100644
--- a/meta/classes/ubifs-img.bbclass
+++ b/meta/classes/ubifs-img.bbclass
@@ -25,6 +25,7 @@ do_ubifs_image() {
# Create ubifs image using buildchroot tools
sudo chroot ${BUILDCHROOT_DIR} /usr/sbin/mkfs.ubifs ${MKUBIFS_ARGS} \
-r '${PP_ROOTFS}' '${PP_DEPLOY}/${UBIFS_IMAGE_FILE}'
+ sudo chown $(id -u):$(id -g) '${DEPLOY_DIR_IMAGE}/${UBIFS_IMAGE_FILE}'
image_undo_mounts
}
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 7/7] ubifs: Fix output files permissions
2021-07-27 13:10 [PATCH 7/7] ubifs: Fix output files permissions Anton Mikanovich
@ 2021-08-04 12:09 ` Anton Mikanovich
0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2021-08-04 12:09 UTC (permalink / raw)
To: isar-users
27.07.2021 16:10, Anton Mikanovich wrote:
> Need to change imager output files owner to the current user to make
> them available outside Isar without sudo.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
Applied to next.
--
Anton Mikanovich
Promwad Ltd.
External service provider of ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn, Germany
+49 (89) 122 67 24-0
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-04 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 13:10 [PATCH 7/7] ubifs: Fix output files permissions Anton Mikanovich
2021-08-04 12:09 ` Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox