summaryrefslogtreecommitdiff
path: root/scripts/build/installer
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-05 17:29:31 +0100
committerRaphaƫl Hertzog <hertzog@debian.org>2020-04-23 09:38:02 +0000
commit38a5aed0dcdf71f43cecfadc6e34c659408b6a00 (patch)
tree48793210c32b970f78cf4561d3ca23369344fe19 /scripts/build/installer
parent1f63c620f0abdf08188975d083d5f11bebfd2433 (diff)
downloadvyos-live-build-38a5aed0dcdf71f43cecfadc6e34c659408b6a00.tar.gz
vyos-live-build-38a5aed0dcdf71f43cecfadc6e34c659408b6a00.zip
chroot_prep: expand coverage
it now covers: - `lb chroot_apt install-binary` - `lb chroot_archives {chroot|binary|source} {install|remove}` by expanding usage from: `lb chroot_prep {install|remove} HELPERS [ARGS]` to: `lb chroot_prep {install|remove} HELPERS [MODE[ MODE..]] [ARGS]` where `[MODE[ MODE..]]` is an optional set of one or more of: - archives-chroot, which specifies to use 'chroot' as the first param to the chroot_archives script - archives-binary, which specifies to use 'binary' - archives-source, which specifies to use 'source' - apt-install-binary, which specified to pass 'install-binary' instead of 'install' to chroot_apt thus _all_ chroot prep scripts can be run through this helper now! note, in the case of the binary stage, 'archives' is deliberately not added to CHROOT_PREP_OTHER, this is not a mistake! Gbp-Dch: Short
Diffstat (limited to 'scripts/build/installer')
-rwxr-xr-xscripts/build/installer6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/build/installer b/scripts/build/installer
index bab2a6d32..30d27990b 100755
--- a/scripts/build/installer
+++ b/scripts/build/installer
@@ -29,8 +29,7 @@ Setup_clean_exit
if [ "${LB_BUILD_WITH_CHROOT}" = "true" ]; then
# Configuring chroot
- lb chroot_prep install all "${@}"
- lb chroot_archives chroot install "${@}"
+ lb chroot_prep install all mode-archives-chroot "${@}"
fi
# Building installer
@@ -39,8 +38,7 @@ lb installer_preseed "${@}"
if [ "${LB_BUILD_WITH_CHROOT}" = "true" ]; then
# Deconfiguring chroot
- lb chroot_archives chroot remove "${@}"
- lb chroot_prep remove all "${@}"
+ lb chroot_prep remove all mode-archives-chroot "${@}"
fi
Echo_message "Installer stage completed"