[elbe-devel] [PATCH 09/10] rfs/debootstrap: gnupg is not bootstraped in buster

Torben Hohn torben.hohn at linutronix.de
Wed Apr 3 18:10:33 CEST 2019


On Wed, Apr 03, 2019 at 12:34:57PM +0200, Manuel Traut wrote:
> after debootstrapping a buster target without a debootstrap-variant gnupg is
> missing in the target rfs.

lets add this unconditionally.
this is the source of the pkg difference between rebuilt cdroms.
somehow gpg is not installed upon cdrom rebuild.


> 
> however it is required by 'apt-key add' that is issued during entering the
> chroot:
> 
> --8<--
> running cmd +chroot /var/cache/elbe/7ec16c95-e147-425e-bb59-5e652bb1e734/chroot
> apt-key add /repo/repo.pub+
> ------------------------------------------------------------------------------
> E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is
> required for this operation
> ------------------------------------------------------------------------------
> 
> Command failed with errorcode 255
> --8<--
> 
> Therefore add it to the extra packages that should be initially debootstrapped.
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
>  elbepack/rfs.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/elbepack/rfs.py b/elbepack/rfs.py
> index 6edf7496..990d7df2 100644
> --- a/elbepack/rfs.py
> +++ b/elbepack/rfs.py
> @@ -141,6 +141,11 @@ class BuildEnv (object):
>              self.log.printo('use bootstrap no variant.')
>              strapcmd = 'debootstrap'
>  
> +        # for bootstrapping buster gnupg needs to be added to enable local repo
> +        # signature verification
> +        if suite == 'buster':
> +            strapcmd += ' --include gnupg2'
> +

please add gnupg for stretch also.

>          if not self.xml.is_cross(host_arch):
>              # ignore gpg verification if install from cdrom, cause debootstrap
>              # seems to ignore /etc/apt/trusted.gpg.d/elbe-keyring.gpg
> -- 
> 2.20.1
> 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190403/e9259af7/attachment.sig>


More information about the elbe-devel mailing list