public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH 1/3] image: Copy KERNEL_IMAGE out using sudo
Date: Thu, 15 Nov 2018 18:29:29 +0100	[thread overview]
Message-ID: <20181115172931.12117-2-henning.schild@siemens.com> (raw)
In-Reply-To: <20181115172931.12117-1-henning.schild@siemens.com>

This is an addition to 8a2b89994405 and makes me remember a few sudo
discussions. In ubuntu the kernel will not be readable for a regular
user, so use sudo for the kernel as well.

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

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index d033cf5..d7b352e 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -86,7 +86,7 @@ addtask mark_rootfs before do_copy_boot_files after do_rootfs
 do_copy_boot_files() {
     KERNEL_IMAGE=${@get_image_name(d, 'vmlinuz')[1]}
     if [ -n "${KERNEL_IMAGE}" ]; then
-        cp -f ${IMAGE_ROOTFS}/boot/${@get_image_name(d, 'vmlinuz')[0]} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE}
+        sudo cp -f ${IMAGE_ROOTFS}/boot/${@get_image_name(d, 'vmlinuz')[0]} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE}
     fi
 
     INITRD_IMAGE=${@get_image_name(d, 'initrd.img')[1]}
-- 
2.19.1


  reply	other threads:[~2018-11-15 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-15 17:29 [PATCH 0/3] Enable Ubuntu 18.10 Henning Schild
2018-11-15 17:29 ` Henning Schild [this message]
2018-11-15 17:29 ` [PATCH 2/3] meta/isar-bootstrap: allow passing a SCRIPT to debootstrap Henning Schild
2018-11-15 17:29 ` [PATCH 3/3] conf: Add new distro ubuntu with suite "cosmic" Henning Schild
2018-11-15 19:58   ` Henning Schild
2018-11-15 17:35 ` [PATCH 0/3] Enable Ubuntu 18.10 Henning Schild
2018-11-15 17:48   ` Henning Schild
2019-01-28 16:58 ` Henning Schild
2019-01-28 17:05   ` Jan Kiszka

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=20181115172931.12117-2-henning.schild@siemens.com \
    --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