From a418666f59bb46d6b5d554563417f848113209e5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 13 Aug 2025 13:54:01 +0200 Subject: [PATCH] testing: Use new recommended approach to install key for custom apt repository apt-key add is deprecated (and not available in trixie) as it makes the available for all sources. The recommended approach makes the key very specifically available for just our repository. --- testing/scripts/build-baseimage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/scripts/build-baseimage b/testing/scripts/build-baseimage index edb1588c4..ce8bdc690 100755 --- a/testing/scripts/build-baseimage +++ b/testing/scripts/build-baseimage @@ -125,13 +125,13 @@ EOF execute_chroot "locale-gen" log_action "Downloading signing key for custom apt repo" -execute_chroot "wget -q $BASEIMGEXTKEY -O /tmp/key" +execute_chroot "wget -q $BASEIMGEXTKEY -O /tmp/strongswan.key" log_action "Installing signing key for custom apt repo" -execute_chroot "apt-key add /tmp/key" +execute_chroot "mv /tmp/strongswan.key /etc/apt/keyrings/" log_action "Enabling custom apt repo" cat > $LOOPDIR/etc/apt/sources.list.d/strongswan.list << EOF -deb $BASEIMGEXTREPO $BASEIMGSUITE main +deb [signed-by=/etc/apt/keyrings/strongswan.key] $BASEIMGEXTREPO $BASEIMGSUITE main EOF log_status $?