From 597b871b6bc00988a2bab9e5b929f0221c0baee4 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Sat, 9 May 2020 23:28:44 +0200 Subject: [PATCH] vm-img: ignore gpg errors with archive.debian.org Is there an option to only ignore KEYEXPIRED ? --- component/vm-img/debian.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/component/vm-img/debian.cfg b/component/vm-img/debian.cfg index 8a0d2cb6f1..05444a80f5 100644 --- a/component/vm-img/debian.cfg +++ b/component/vm-img/debian.cfg @@ -25,6 +25,8 @@ recipe = slapos.recipe.build:vm.install-debian environment = vm-install-environment dists = debian-stable size = 1Gi +preseed.partman/early_command = + set -e /usr/lib/apt-setup/generators/99 AllowUnauthenticated; if [ "`debconf-get mirror/http/hostname`" = archive.debian.org ]; then echo "echo 'APT::Get::$2 \"true\";' >/target/etc/apt/apt.conf.d/01$2" >$1$2; chmod +x $1$2; fi late-command = # rdnssd causes too much trouble with recent QEMU, because the latter acts as # a DNS proxy on both IPv4 and IPv6 without translating queries to what the -- 2.30.9