From 0d0ae9f09e9ff71e044a24fc32b4e3579db0c138 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 9 Mar 2026 21:45:53 +0700 Subject: [PATCH] lxc-debian: Use distro_codename in write_sourceslist The variable `distro_codename` (introduced in previous commit) is a better fit than `release` for places where we want to match a codename. Signed-off-by: Arnaud Rebillout --- templates/lxc-debian.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index c2371ea..8e3b241 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -240,7 +240,7 @@ write_sourceslist() if [ "$mainonly" = 1 ]; then non_main='' else - case "$release" in + case "$distro_codename" in wheezy|jessie|stretch|buster|bullseye) non_main=' contrib non-free' ;;