Skip to content

Commit

Permalink
Change security repo url
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Rodríguez Hernández <[email protected]>
  • Loading branch information
Carlos Rodríguez Hernández committed Jun 13, 2023
1 parent 6f2f618 commit b108d75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mkimage
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ fi
rootfs_chroot bash debootstrap/debootstrap --second-stage

repo_url="http://deb.debian.org/debian"
sec_repo_url="http://security.debian.org/"
sec_repo_url="http://security.debian.org/debian-security"

echo -e "deb ${repo_url} $DIST main" > "$rootfsDir/etc/apt/sources.list"
echo -e "deb ${sec_repo_url} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list"
if [ "$DIST" == "bullseye" ]; then
echo -e "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list"
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"
elif [ "$DIST" == "buster" ]; then
echo "deb ${sec_repo_url} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list"
fi

rootfs_chroot apt-get update
Expand Down

0 comments on commit b108d75

Please sign in to comment.