From 63d65942397ea36e34f335952d3bc64a7af16ddd Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sun, 11 Aug 2019 16:18:52 +0200
Subject: include mime-support in steelfire debootstrap as build-fix

---
 auto/config | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/auto/config b/auto/config
index 6425830..f1aa523 100755
--- a/auto/config
+++ b/auto/config
@@ -17,12 +17,25 @@ 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
+# for stretch also use mime-support (fix build error)
 
-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
+case "$LB_DISTRIBUTION" in
+wheezy)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates --exclude=nano"
+	;;
+jessie)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates --exclude=nano"
+	;;
+stretch)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,mime-support --exclude=nano"
+	;;
+buster)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
+	;;
+*)
+        KDEBOOTSTRAPOPTIONS="--include=apt-transport-https,ca-certificates,gpg,gpg-agent,mime-support --exclude=nano"
+	;;
+esac
 
 lb config noauto \
 	--iso-volume KANOTIX \
-- 
cgit v1.0