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

Manuel Traut manut at linutronix.de
Wed Apr 3 12:34:57 CEST 2019


after debootstrapping a buster target without a debootstrap-variant gnupg is
missing in the target rfs.

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'
+
         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




More information about the elbe-devel mailing list