summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2009-05-09 22:36:30 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:44 +0100
commit476d4c447e4635b3a762098d333869b66ebd8dd8 (patch)
tree0e6c47ce4bd746512dab4e037a2efcf6524006d3 /functions
parent7226d24dd8f48267d746269380d73e8b54baf776 (diff)
downloadvyos-live-build-476d4c447e4635b3a762098d333869b66ebd8dd8.tar.gz
vyos-live-build-476d4c447e4635b3a762098d333869b66ebd8dd8.zip
Print a warning if you are using "stripped" or "minimal" but you have set LH_BINARY_INCICES="enabled" (Closes: #527974)
This is mostly for people new to 1.0.4 with old configs.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 8ad360fa6..c87811c84 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -1057,4 +1057,13 @@ Check_defaults ()
then
Echo_warning "You have specified a value of LH_ISO_VOLUME that is too long; the maximum length is 32 characters."
fi
+
+ if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"
+ then
+ if [ "${LH_BINARY_INDICES}" = "enabled" ]
+ then
+ Echo_warning "You have selected hook to minimise image size but you are still including package indices with your value of LH_BINARY_INDICES."
+ fi
+ fi
+
}