summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-07 16:33:57 +0100
committerRaphaƫl Hertzog <hertzog@debian.org>2020-04-23 09:38:02 +0000
commit04c5aae0a97fac04c92b864fb1b3484354acded0 (patch)
tree94bcb226207e91dffd034d1e11f5980ef327b8d5 /scripts
parentd171426ae48d2d315ef9ec32fb25c98d02d97875 (diff)
downloadvyos-live-build-04c5aae0a97fac04c92b864fb1b3484354acded0.tar.gz
vyos-live-build-04c5aae0a97fac04c92b864fb1b3484354acded0.zip
chroot_prep: warn if running archives helper for bootstrap stage
to protect against simple mistake of using 'all' instead of 'all-except-archives' when manually executing scripts (e.g. during development) at the bootstrap stage level. (the bootstrap stage does not and should not use the archives helper). Gbp-Dch: Ignore
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/chroot_prep4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/chroot_prep b/scripts/build/chroot_prep
index 3fac53852..8de0e4e29 100755
--- a/scripts/build/chroot_prep
+++ b/scripts/build/chroot_prep
@@ -94,6 +94,10 @@ if In_list "archives" ${HELPERS} && [ -z "${ARCHIVES_PASS}" ]; then
exit 1
fi
+if In_list "archives" ${HELPERS} && [ ! -e .build/bootstrap ]; then
+ Echo_warning "The 'archives' helper is selected, but the bootstrap stage has not completed."
+fi
+
if [ "${_ACTION}" = "remove" ]; then
HELPERS_REVERSED=""
for HELPER in $HELPERS; do