public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/2] meta: targz-img: chown image file to building user
@ 2019-12-18 15:19 Henning Schild
  2019-12-18 15:19 ` [PATCH 2/2] meta: image-account-extension: trigger a rebuild when variables change Henning Schild
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Henning Schild @ 2019-12-18 15:19 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

From: Henning Schild <henning.schild@siemens.com>

Make sure the image is not owned by root:root.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/classes/targz-img.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/targz-img.bbclass b/meta/classes/targz-img.bbclass
index d9dadae..af12ae1 100644
--- a/meta/classes/targz-img.bbclass
+++ b/meta/classes/targz-img.bbclass
@@ -8,6 +8,7 @@ TARGZ_IMAGE_FILE = "${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.tar.gz"
 do_targz_image() {
     rm -f ${TARGZ_IMAGE_FILE}
     sudo tar -cvzf ${TARGZ_IMAGE_FILE} --one-file-system -C ${IMAGE_ROOTFS} .
+    sudo chown $(id -u):$(id -g) ${TARGZ_IMAGE_FILE}
 }
 
 addtask targz_image before do_image after do_image_tools
-- 
2.24.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-27 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 15:19 [PATCH 1/2] meta: targz-img: chown image file to building user Henning Schild
2019-12-18 15:19 ` [PATCH 2/2] meta: image-account-extension: trigger a rebuild when variables change Henning Schild
2019-12-19  9:21 ` [PATCH 1/2] meta: targz-img: chown image file to building user Henning Schild
2020-01-27 14:51 ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox