aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-10-23 16:11:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-10-23 16:11:22 -0300
commitd750751918bfeb48bf09d2d06b9c94b2c0288b28 (patch)
treea151a87dce6885ba9c682f4345b6c5f3dfc2ecd6 /kvmx-create
parent9e06edd6b6569e225c000b2ec57e5fff96ce0ca0 (diff)
downloadkvmx-d750751918bfeb48bf09d2d06b9c94b2c0288b28.tar.gz
kvmx-d750751918bfeb48bf09d2d06b9c94b2c0288b28.tar.bz2
Fix: image creation for the debian testing and experimental
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create5
1 files changed, 4 insertions, 1 deletions
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