]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: image creation for the debian testing and experimental
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Oct 2020 19:11:22 +0000 (16:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Oct 2020 19:11:22 +0000 (16:11 -0300)
kvmx-create

index a9cc62a076601aa3f727fbf596d7122414e676a4..ba25147f972c7e349f27c1436c4ae065985c2cd0 100755 (executable)
@@ -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