From 25ea1a36bfd067fb160788f9a5174d5a64f4ed09 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Tue, 29 Dec 2020 17:50:54 +0100
Subject: Add config option for security and updates

The name of the repo has changed in bullseye
---
 auto/config | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/auto/config b/auto/config
index c4140fc..1761095 100755
--- a/auto/config
+++ b/auto/config
@@ -16,6 +16,12 @@ export LB_SYSLINUX_MENU_LIVE_ENTRY="Kanotix"
 export LB_LINUX_PACKAGES="linux-image linux-headers"
 
 echo "We build $LB_DISTRIBUTION"
+# use flag for security and updates
+# since bullseye the name for security has changed, disable for now
+# live-build default is true
+KSECURITY="true"
+KUPDATES="true"
+
 # since buster we need packages in debootstrap not avaible in earlier distributions
 # for stretch also use mime-support (fix build error)
 
@@ -32,6 +38,10 @@ stretch)
 buster)
         KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
 	;;
+bullseye)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
+        KSECURITY="false"
+	;;
 *)
         KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
 	;;
@@ -50,7 +60,8 @@ lb config noauto \
 	--archive-areas "main contrib non-free" \
 	--debootstrap-options "${KDEBOOTSTRAPOPTIONS}" \
 	--repositories "live.debian.net lo" \
-	--security true \
+	--security "${KSECURITY}" \
+	--updates "${KUPDATES}" \
 	--checksums md5 \
 	--syslinux-timeout 5 \
 	--syslinux-menu true \
-- 
cgit v1.0