public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: <isar-users@googlegroups.com>
Subject: Re: [PATCH 1/2] meta: targz-img: chown image file to building user
Date: Thu, 19 Dec 2019 10:21:48 +0100	[thread overview]
Message-ID: <20191219102148.1928b11c@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20191218151903.6822-1-henning.schild@siemens.com>

https://github.com/henning-schild-work/isar/tree/henning/staging6

On Wed, 18 Dec 2019 16:19:02 +0100
Henning Schild <henning.schild@siemens.com> wrote:

> 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


  parent reply	other threads:[~2019-12-19  9:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2019-12-19  9:21 ` Henning Schild [this message]
2020-01-27 14:51 ` [PATCH 1/2] meta: targz-img: chown image file to building user Baurzhan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191219102148.1928b11c@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox