public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: vijaikumar.kanagarajan@gmail.com
To: isar-users@googlegroups.com
Cc: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Subject: [PATCH] isar-bootstrap: Remove unwanted sudo calls
Date: Tue, 24 Dec 2019 10:34:12 +0530	[thread overview]
Message-ID: <20191224050412.17234-1-Vijaikumar_Kangarajan@mentor.com> (raw)

From: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>

Remove unwanted sudo calls inside
|sudo -E -s <<'EOSUDO'
|...
|EOSUDO

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
 meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
index 5dd571e..16b4395 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
@@ -270,7 +270,7 @@ isar_bootstrap() {
                     -e "s#{BASE_DISTRO_CODENAME}#"${BASE_DISTRO_CODENAME}"#g" \
 	            -i ${BASEAPTSRCS}
                 mkdir -p ${ROOTFSDIR}/base-apt
-                sudo mount --bind ${REPO_BASE_DIR} ${ROOTFSDIR}/base-apt
+                mount --bind ${REPO_BASE_DIR} ${ROOTFSDIR}/base-apt
                 install -v -m644 "${BASEAPTSRCS}" \
                                  "${ROOTFSDIR}/etc/apt/sources.list.d/base-apt.list"
             else
@@ -288,7 +288,7 @@ isar_bootstrap() {
             do
                 kfn="$(basename $keyfile)"
                 cp $keyfile "${ROOTFSDIR}/tmp/$kfn"
-                sudo -E chroot "${ROOTFSDIR}" /usr/bin/apt-key \
+                chroot "${ROOTFSDIR}" /usr/bin/apt-key \
                    --keyring ${THIRD_PARTY_APT_KEYRING} add "/tmp/$kfn"
                 rm "${ROOTFSDIR}/tmp/$kfn"
             done
-- 
2.17.1


             reply	other threads:[~2019-12-24  5:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-24  5:04 vijaikumar.kanagarajan [this message]
2020-01-28 21:36 ` Baurzhan Ismagulov
2020-01-31  0:55   ` Henning Schild
2020-03-10 15:44     ` 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=20191224050412.17234-1-Vijaikumar_Kangarajan@mentor.com \
    --to=vijaikumar.kanagarajan@gmail.com \
    --cc=Vijaikumar_Kanagarajan@mentor.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