public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] isar-bootstrap: Remove unwanted sudo calls
@ 2019-12-24  5:04 vijaikumar.kanagarajan
  2020-01-28 21:36 ` Baurzhan Ismagulov
  0 siblings, 1 reply; 4+ messages in thread
From: vijaikumar.kanagarajan @ 2019-12-24  5:04 UTC (permalink / raw)
  To: isar-users; +Cc: Vijai Kumar K

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


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

end of thread, other threads:[~2020-03-10 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-24  5:04 [PATCH] isar-bootstrap: Remove unwanted sudo calls vijaikumar.kanagarajan
2020-01-28 21:36 ` Baurzhan Ismagulov
2020-01-31  0:55   ` Henning Schild
2020-03-10 15:44     ` Baurzhan Ismagulov

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