Am Freitag, den 25.10.2019, 09:57 +0200 schrieb Johannes Schauer: > Hi, > > Quoting Benjamin Drung (2019-10-24 11:54:14) > > Since automatically choosing the right keyring is non-reliable and > > adding symlinks into /etc/apt/trusted.gpg.d affects the host > > system, I > > like to have a --keyring parameter until there is a better solution > > found. > > > > This --keyring parameter should set the apt option > > Dir::Etc::Trusted if > > it points to a file and Dir::Etc::TrustedParts if it points to a > > directory. I can remember --keyring and find the correct full path > > without needing to look into a man page. > > actually I found an even better reason why a --keyring parameter is > no problem: > debootstrap has it as well! > > So the user might actually expect the parameter to exist and has an > idea of how > it works. > > And yes, it should set the apt options you mention depending on > whether a file > or directory is passed and it should be possible to specify the -- > keyring > parameter multiple times. > > Thanks!
Thanks for implementing it. Specifying --keyring before --aptopt fails: mmdebstrap --keyring=/usr/share/keyrings/debian-archive-keyring.gpg \ -v --aptopt='Acquire::http { Proxy "123"; }' \ buster /tmp/buster.tar.xz -- Benjamin Drung Debian & Ubuntu Developer Platform Engineering Compute (Enterprise Cloud) 1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany E-mail: benjamin.dr...@cloud.ionos.com | Web: www.ionos.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498 Vorstand: Dr. Christian Böing, Hüseyin Dogan, Hans-Henning Kettler, Matthias Steinberg, Achim Weiß Aufsichtsratsvorsitzender: Markus Kadelke Member of United Internet
signature.asc
Description: This is a digitally signed message part