summaryrefslogtreecommitdiff
path: root/share/bin
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-30 05:48:08 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-04-30 06:20:52 +0100
commit647dcb7aeddc71c9637e1487de1c3f61e49ae978 (patch)
treef4277e6d4296ef41675c6f65171d552248ad92e8 /share/bin
parent51903da07338928e15c8c7963b18968954f4dd06 (diff)
downloadvyos-live-build-647dcb7aeddc71c9637e1487de1c3f61e49ae978.tar.gz
vyos-live-build-647dcb7aeddc71c9637e1487de1c3f61e49ae978.zip
bootstrap_cache: fix failure condition
during testing i encountered an unexpected error resulting from the following condition: - bootstrap was cached - cache of bootstrap packages was empty (from playing with `lb clean`) - installer was not none|live everything works fine up until the main installer script, which comes to an abrupt halt with an error due to the missing cached bootstrap packages that it wants to copy. this situation is easy to unintentionally create, as i managed to do. here we catch the failure condition, correcting for it. this is done by checking for the missing cached packages when restoring the bootstrap from the cache, and skipping this if the packages were missing, thus forcing the bootstrap to be rebuilt. the packages should then be found within the cache, allowing the installer stage to complete successfully. of course the bootstrap stage will only cache the packages if caching is enabled, but if caching is disabled and installer enabled, the config validation will catch that, reporting that problem. Gbp-Dch: Short
Diffstat (limited to 'share/bin')
0 files changed, 0 insertions, 0 deletions