From 08a6819b2fef1b87695f242b597acb6f48620b8e Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 20 Apr 2019 13:26:58 +0200
Subject: Different deboostrap options since Buster

gpg gpg-agent and mime-support are needed for buster.
packages needed for buster are not avaible in earlier distributions.
mime-support may be needed for libre-office
---
 auto/config | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/auto/config b/auto/config
index 7a31f38..38c30e0 100755
--- a/auto/config
+++ b/auto/config
@@ -15,6 +15,15 @@ export LB_BOOTLOADER="grub2"
 export LB_SYSLINUX_MENU_LIVE_ENTRY="Kanotix"
 export LB_LINUX_PACKAGES="linux-image linux-headers"
 
+echo "We build $LB_DISTRIBUTION"
+# since buster we need packages in debootstrap not avaible in earlier distributions
+
+if [ "$LB_DISTRIBUTION" = "wheezy" -o "$LB_DISTRIBUTION" = "jessie" -o "$LB_DISTRIBUTION" = "stretch"  ]; then
+ KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates --exclude=nano"
+else
+ KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
+fi
+
 lb config noauto \
 	--iso-volume KANOTIX \
 	--iso-preparer kanotix.com \
@@ -26,7 +35,7 @@ lb config noauto \
 	--apt-recommends false \
 	--bootappend-live 'utc=no timezone=Europe/Berlin locales=de keyboard-layouts=de keyboard-variant=nodeadkeys splash' \
 	--archive-areas "main contrib non-free" \
-	--debootstrap-options "--include=apt-transport-https,ca-certificates --exclude=nano" \
+	--debootstrap-options "${KDEBOOTSTRAPOPTIONS}" \
 	--repositories "live.debian.net lo" \
 	--security true \
 	--checksums md5 \
-- 
cgit v1.0