From: Henning Schild <henning.schild@siemens.com>
To: <cedric_hombourger@mentor.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [RFC v1 2/3] Refactor gpg code to use apt code
Date: Tue, 26 Feb 2019 16:57:01 +0100 [thread overview]
Message-ID: <20190226165701.4e550d8c@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <bc8ec313-7171-4a0d-9c54-9f6a5186d033@googlegroups.com>
Am Tue, 26 Feb 2019 06:07:38 -0800
schrieb <cedric_hombourger@mentor.com>:
> >
> > diff --git a/meta/classes/isar-bootstrap-helper.bbclass
> > b/meta/classes/isar-bootstrap-helper.bbclass
> > index d780b85..df6fbee 100644
> > --- a/meta/classes/isar-bootstrap-helper.bbclass
> > +++ b/meta/classes/isar-bootstrap-helper.bbclass
> > @@ -119,6 +119,14 @@ setup_root_file_system() {
> > export LANG=C
> > export LANGUAGE=C
> > export LC_ALL=C
> > +
> > + if [ -d ${TMPDIR}/aptkeys ]; then
> > + for keyfile in ${TMPDIR}/aptkeys/*
> > + do
> > + cp $keyfile "$ROOTFSDIR"/tmp/$(basename $keyfile)
> >
>
> I have seen repos name their key debian.gpg or some other generic name
> I am concerned that we may get repositories using the same key names
> and only the last key would be added
> Should we do something like:
>
> tmpkey=$(mktemp -p "$ROOTFSDIR"/tmp)
> cp $keyfile $tmpkey
> sudo -E chroot "$ROOTFSDIR" /usr/bin/apt-key add /tmp/$(basename
> $tmpkey) rm -f $tmpkey
I think there is no point in doing that, they would already collide in
the DLDIR. You probably want to use ";name=foo" in the SRC_URI.
Henning
> + sudo -E chroot "$ROOTFSDIR" /usr/bin/apt-key add
> > /tmp/$(basename $keyfile)
> > + done
> > + fi
> >
>
>
> >
>
next prev parent reply other threads:[~2019-02-26 15:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-26 13:48 [RFC v1 0/3] Fix additional apt repos with foreign keys Andreas J. Reichel
2019-02-26 13:48 ` [RFC v1 1/3] Fix path to user gpg-keys Andreas J. Reichel
2019-02-26 15:33 ` Henning Schild
2019-02-26 13:48 ` [RFC v1 2/3] Refactor gpg code to use apt code Andreas J. Reichel
2019-02-26 14:07 ` cedric_hombourger
2019-02-26 15:57 ` Henning Schild [this message]
2019-02-26 15:39 ` Henning Schild
2019-02-26 13:48 ` [RFC v1 3/3] Use all source lists in target root apt Andreas J. Reichel
2019-02-26 15:06 ` [RFC v1 0/3] Fix additional apt repos with foreign keys Henning Schild
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=20190226165701.4e550d8c@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=cedric_hombourger@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