From 3b6f68774e4812042952e22d032b217f45f4025c Mon Sep 17 00:00:00 2001 From: Jose Antonio Carmona Date: Wed, 14 Jun 2023 13:34:45 +0200 Subject: [PATCH] Update security repo URLs Signed-off-by: Jose Antonio Carmona --- mkimage | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mkimage b/mkimage index 1b108109..0b9280f1 100755 --- a/mkimage +++ b/mkimage @@ -71,14 +71,18 @@ fi rootfs_chroot bash debootstrap/debootstrap --second-stage repo_url="http://deb.debian.org/debian" -sec_repo_url="http://security.debian.org/debian-security" +sec_repo_url_1="${repo_url}-security" +sec_repo_url_2="http://security.debian.org/debian-security" echo -e "deb ${repo_url} $DIST main" > "$rootfsDir/etc/apt/sources.list" -if [ "$DIST" == "bullseye" ] || [ "$DIST" == "bookworm" ]; then +if [ "$DIST" == "bookworm" ]; then echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list" - echo "deb ${sec_repo_url} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" + echo "deb ${sec_repo_url_1} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" +elif [ "$DIST" == "bullseye" ]; then + echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list" + echo "deb ${sec_repo_url_2} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" elif [ "$DIST" == "buster" ]; then - echo "deb ${sec_repo_url} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list" + echo "deb ${sec_repo_url_2} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list" fi rootfs_chroot apt-get update