From d750751918bfeb48bf09d2d06b9c94b2c0288b28 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Oct 2020 16:11:22 -0300 Subject: Fix: image creation for the debian testing and experimental --- kvmx-create | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kvmx-create') diff --git a/kvmx-create b/kvmx-create index a9cc62a..ba25147 100755 --- a/kvmx-create +++ b/kvmx-create @@ -144,6 +144,9 @@ function kvmx_config { # Custom version # function kvmx_create_custom { + # Next debian release + NEXT_DEBIAN_RELEASE="bullseye" + # Check dependencies DEPENDENCIES="sudo apt qemu-img sed awk tr head debootstrap chroot" __kvmx_check_dependencies @@ -248,7 +251,7 @@ function kvmx_create_custom { # Apt if [ "$distro" == "debian" ]; then - if [ "$version" != "sid" ] && [ "$version" != "bullseye" ]; then + if [ "$version" != "sid" ] && [ "$version" == "experimental" ] && [ "$version" != "$NEXT_DEBIAN_RELEASE" ]; then echo "deb http://security.debian.org/ $version/updates main contrib non-free" | $SUDO tee -a $WORK/etc/apt/sources.list > /dev/null echo "deb-src http://security.debian.org/ $version/updates main contrib non-free" | $SUDO tee -a $WORK/etc/apt/sources.list > /dev/null fi -- cgit v1.2.3