Remove unstable mentions and always add security repo to sources

Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
Carlos Rodríguez Hernández
2023-06-13 18:21:41 +02:00
parent a17be0216f
commit 489416e02e
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ We provide a Makefile to help you build Minideb locally. It should be run on a D
$ sudo make
```
To build an individual release (buster, bullseye or unstable)
To build an individual release (buster or bullseye)
```
$ sudo make bullseye
```
+2 -4
View File
@@ -78,11 +78,9 @@ repo_url="http://deb.debian.org/debian"
sec_repo_url="http://security.debian.org/"
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 "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" != "unstable" ]; then
echo "deb ${sec_repo_url} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list"
echo -e "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list"
fi
rootfs_chroot apt-get update