summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-07 20:06:39 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-08-07 20:10:48 +0100
commit1376d237dcb3f54b3d9f3f27f1e251704086717c (patch)
tree52500bd06f03926376426d69dce70c1d7645fd25
parent6f870a5be2f0c6f9b97c060fb995fd8f6e927fc8 (diff)
downloadvyos-live-build-1376d237dcb3f54b3d9f3f27f1e251704086717c.tar.gz
vyos-live-build-1376d237dcb3f54b3d9f3f27f1e251704086717c.zip
Print a warning when package caching is disabled but d-i integration is enabled.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-rwxr-xr-xfunctions/defaults.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 4bf3f749d..b8be125eb 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -686,4 +686,15 @@ Check_defaults ()
Echo_warning "used in the stripped/minimal package lists."
fi
fi
+
+ if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ]
+ then
+ if ! echo ${LH_CACHE_STAGES} | grep -qs "bootstrap\b" || [ "${LH_CACHE}" != "enabled" ] || [ "${LH_CACHE_PACKAGES}" != "enabled" ]
+ then
+ Echo_warning "You have selected values of LH_CACHE, LH_CACHE_PACKAGES, LH_CACHE_STAGES and"
+ Echo_warning "LH_DEBIAN_INSTALLER which will result in 'bootstrap' packages not being"
+ Echo_warning "cached. This is a possible unsafe configuration as the bootstrap packages"
+ Echo_warning "are re-used when integrating the Debian Installer."
+ fi
+ fi
}