From 46b63edc972c94da74f3e7ee018df5143adea419 2017-11-04 15:34:19 From: GĂ©rard Vidal Date: 2017-11-04 15:34:19 Subject: [PATCH] For buster images only apt-transport-https has been removed from repositories 2017-11-01 Condition has been added --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 25bbdc7..de68af5 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -212,8 +212,13 @@ CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} # Packages required in the chroot build environment APT_INCLUDES=${APT_INCLUDES:=""} -APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" - +# apt-transport-https has been removed from repositories +# this induces qemu error 383 which does not prevent building an image +if [ "$RELEASE" = "buster" ] ; then + APT_INCLUDES="${APT_INCLUDES},apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" +else + APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" +fi # Packages required for bootstrapping REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" MISSING_PACKAGES=""