public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fixes usage of additional apt keys
@ 2019-02-27 15:18 Andreas J. Reichel
  2019-02-27 15:18 ` [PATCH v2 1/3] Fix and simplify apt keyring generation Andreas J. Reichel
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Andreas J. Reichel @ 2019-02-27 15:18 UTC (permalink / raw)
  To: isar-users; +Cc: Andreas Reichel

From: Andreas Reichel <andreas.reichel.ext@siemens.com>

If the user does not want to replace the bootstrap source together with
the key, additional keys did not work.

This is solved by not replacing the keyring but to add keys to
/ect/apt/trusted.gpg.d/isar.gpg, where debootstrap and any apt call
can find it.

Furthermore, the code to add keys is simplified a lot by not manually
parsing URIs and guessing about download locations as well as
not manually handling gpg and giving apt config overrides.

It is much simpler by using `apt-key` and default apt keyring paths.

Furthermore, apt-get must not use a given single source list which was
used from debootstrapping. Otherwise, additional packages are always
unauthenticated, which is a quite misleading error. Instead, apt-get
should use all source lists available in the built root.

Signed-off-by: Andreas Reichel <andreas.reichel.ext@siemens.com>

Andreas Reichel (3):
  Fix and simplify apt keyring generation
  Use all source lists in target root apt
  Separate apt-key entries from default keyring

 meta/classes/isar-bootstrap-helper.bbclass    | 17 ++++++--
 meta/classes/isar-image.bbclass               |  1 +
 .../isar-bootstrap/isar-bootstrap-host.bb     |  2 +-
 .../isar-bootstrap/isar-bootstrap.inc         | 39 +++++++++----------
 4 files changed, 33 insertions(+), 26 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-03-06 16:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-27 15:18 [PATCH v2 0/3] Fixes usage of additional apt keys Andreas J. Reichel
2019-02-27 15:18 ` [PATCH v2 1/3] Fix and simplify apt keyring generation Andreas J. Reichel
2019-02-27 16:12   ` Henning Schild
2019-03-01  9:09     ` Andreas Reichel
2019-03-01 10:18       ` Henning Schild
2019-03-06 16:29         ` Andreas Reichel
2019-03-01  9:16     ` Andreas Reichel
2019-03-01 10:11       ` Henning Schild
2019-03-01 10:22     ` Henning Schild
2019-03-06 16:29       ` Andreas Reichel
2019-02-27 15:18 ` [PATCH v2 2/3] Use all source lists in target root apt Andreas J. Reichel
2019-02-27 15:18 ` [PATCH v2 3/3] Separate apt-key entries from default keyring Andreas J. Reichel
2019-02-27 16:14   ` Henning Schild
2019-03-01  9:08     ` Andreas Reichel
2019-02-27 16:15 ` [PATCH v2 0/3] Fixes usage of additional apt keys Henning Schild
2019-03-01  9:17   ` Andreas Reichel

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