aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
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