live-build/scripts/build
Lyndon Brown 647dcb7aed 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
2020-04-30 06:20:52 +01:00
..
binary chroot_prep: expand coverage 2020-04-23 09:38:02 +00:00
binary_checksums config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
binary_chroot stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_disk config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_grub-efi config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_grub-legacy config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_grub-pc config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_hdd config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_includes config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_iso config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_linux-image rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_loadlin rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_loopback_cfg loopback: tidy formatting 2020-04-29 20:08:39 +01:00
binary_manifest config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
binary_memtest rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_netboot config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_onie config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_package-lists rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_rootfs rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_syslinux Do not overwrite splash.png if the user has provided it 2020-04-25 10:49:35 +02:00
binary_tar config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
binary_win32-loader rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
binary_zsync config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
bootstrap bootstrap_archives: remove useless param 2020-04-23 09:38:02 +00:00
bootstrap_archives bootstrap_archives: remove useless param 2020-04-23 09:38:02 +00:00
bootstrap_cache bootstrap_cache: fix failure condition 2020-04-30 06:20:52 +01:00
bootstrap_debootstrap rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE 2020-04-23 16:00:34 +02:00
build fix auto file handling regression 2020-04-28 15:12:35 +01:00
chroot chroot_prep: expand coverage 2020-04-23 09:38:02 +00:00
chroot_apt stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_archives Use descriptive parameter names for Usage() 2020-04-23 16:38:59 +02:00
chroot_cache fix usage 2020-04-23 15:53:30 +02:00
chroot_debianchroot stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_devpts stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_dpkg stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_firmware firmware: robustify and simplify archive area checking 2020-04-23 15:46:43 +02:00
chroot_hacks config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
chroot_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_hostname stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_hosts stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_includes stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_install-packages stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_interactive stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_linux-image stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_package-lists rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
chroot_prep Use correct variable name to detect removal step 2020-04-24 17:09:10 +02:00
chroot_preseed stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_proc stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_resolv chroot_resolve: fix broken network connectivity 2020-04-23 19:53:31 +00:00
chroot_selinuxfs selinux: fix output consistency 2020-04-29 13:17:50 +00:00
chroot_sysfs stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_sysv-rc stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_tmpfs stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
clean fix auto file handling regression 2020-04-28 15:12:35 +01:00
config a couple tiny doc fixes 2020-04-29 10:27:16 +01:00
efi-image amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
grub-cpmodules amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
installer chroot_prep: expand coverage 2020-04-23 09:38:02 +00:00
installer_debian-installer config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00:00
installer_preseed strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source chroot_prep: expand coverage 2020-04-23 09:38:02 +00:00
source_checksums config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
source_debian rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
source_disk strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source_hdd config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
source_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_iso config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
source_live stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_tar config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00