live-build/scripts/build
Lyndon Brown d79c96232b stagefiles: guard unnecessary chroot removal
just as most scripts are skipped if their stagefile exists (indicating
that they have already been run to completion), including chroot
preparation scripts in install mode, this implements the same guard for
chroot prep remove mode, such that they exit early if their stagefile
does not exist, indicating that the modification has already been removed.
(also override-able by --force in the same way).

this basically just uses a tweaked copy of Check_stagefile().

Gbp-Dch: Short
2020-04-23 18:26:15 +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 config: obsolete unused --net-cow-* options 2020-04-23 15:24:50 +02: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 config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00: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 fix usage 2020-04-23 15:53:30 +02:00
bootstrap_debootstrap rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE 2020-04-23 16:00:34 +02:00
build rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02: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 chroot_prep: warn if running archives helper for bootstrap stage 2020-04-23 09:38:02 +00: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 stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01:00
chroot_selinuxfs stagefiles: guard unnecessary chroot removal 2020-04-23 18:26:15 +01: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 config: s/LIVE_IMAGE_NAME/LB_IMAGE_NAME/ 2020-04-23 16:54:31 +00:00
config config: s/LIVE_IMAGE_TYPE/LB_IMAGE_TYPE/ 2020-04-23 16:54:31 +00: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