mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
Add IGNORE_PREFLIGHT_BINHOST env variable for ignoring PREFLIGHT_BINHOST.
This variable is intended to be used by cbuildbot to allow it to ignore the preflight binhost when clobbering the preflight builder itself, to ensure it doesn't pick up the old preflight prebuilts again. BUG=chromium-os:21788 TEST=Set IGNORE_PREFLIGHT_BINHOST and see that preflight binhosts are ignored. Change-Id: I2a0ca38ad8d35b34d2f14a980d5cd67ab66c0f07 Reviewed-on: https://gerrit.chromium.org/gerrit/11088 Reviewed-by: Ryan Cui <rcui@chromium.org> Tested-by: Ryan Cui <rcui@chromium.org> Commit-Ready: David James <davidjames@chromium.org>
This commit is contained in:
parent
4299eb9d52
commit
e996baa382
@ -35,6 +35,13 @@ set -e
|
||||
# Run version hooks as pre-update
|
||||
${SCRIPTS_DIR}/run_chroot_version_hooks
|
||||
|
||||
PREBUILT_SETUP="/etc/make.conf.prebuilt_setup"
|
||||
if [[ -n "$IGNORE_PREFLIGHT_BINHOST" ]]; then
|
||||
echo 'PORTAGE_BINHOST="$FULL_BINHOST"' | sudo_clobber "$PREBUILT_SETUP"
|
||||
elif [[ -s "$PREBUILT_SETUP" ]]; then
|
||||
sudo_clobber "$PREBUILT_SETUP" < /dev/null
|
||||
fi
|
||||
|
||||
info "Updating chroot"
|
||||
|
||||
EMERGE_FLAGS="-uNv --with-bdeps=y"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user