summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-13 10:17:29 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:42 +0100
commit9a8304d03b6b8e006b9e6187eb47199b1f2cab96 (patch)
treebce083e0406f2f9d5f65127184567993f548de55 /functions
parentb405a9d58fda5913426f8d82aa48626d8c268c62 (diff)
downloadlive-build-9a8304d03b6b8e006b9e6187eb47199b1f2cab96.zip
live-build-9a8304d03b6b8e006b9e6187eb47199b1f2cab96.tar.gz
Adding new setting for binary indices: If set to none, no indices are included at all.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index dc2c5a1..c01e7ba 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -557,7 +557,12 @@ Set_defaults ()
LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}"
# Setting apt indices
- LH_BINARY_INDICES="${LH_BINARY_INDICES:-enabled}"
+ if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"
+ then
+ LH_BINARY_INDICES="${LH_BINARY_INDICES:-none}"
+ else
+ LH_BINARY_INDICES="${LH_BINARY_INDICES:-enabled}"
+ fi
# Setting bootloader
if [ -z "${LH_BOOTLOADER}" ]