Skip to content

Commit

Permalink
Update security repo URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Antonio Carmona <[email protected]>
  • Loading branch information
joancafom committed Jun 14, 2023
1 parent 4774b16 commit 3b6f687
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mkimage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b6f687

Please sign in to comment.