live-build/scripts/build
Lyndon Brown fe9195b59c stagefiles: further robustify with auto filenames
as suggested by Raphaël

rather than have fixed stagefile filename strings at all in the scripts,
use `$(basename $0)` to use the name of the script (which is the same for
almost all cases anyway, and the stage files are supposed to be almost
exclusively unique per-script). we can thus simplify things by determining
the filename for most use cases within the functions themselves.

this does change the file used by a couple of scripts, affecting backwards
compatibility of executing live-build upon an existing partially or fully
completed build:
 - binary_grub-pc used "binary_grub"
 - chroot_includes used "includes.chroot"

care had to be taken for the following cases:
 - there are some cases like bootstrap_cache, source_debian and
   bootstrap_debootstrap which are dealing with more than one file, and/or
   otherwise a filename that is not specific to the script itself exactly,
   or should not be based upon its name.
 - some cases like chroot_cache, bootstrap_cache and
   chroot_install-packages need to append something to the end of the name
   depending upon which pass/action mode the script is being executed with.
 - furthermore in the bootstrap_cache case one of the filenames is used
   within the bootstrap_debootstrap and thus needs very careful handling
   to be certain that a change in filename of bootstrap_cache does not
   break bootstrap_debootstrap.

Gbp-Dch: Short
2020-03-17 18:57:02 +00:00
..
binary stagefiles: simplify & robustify 2020-03-17 18:57:02 +00:00
binary_checksums stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_chroot stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_disk stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_grub-efi stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_grub-legacy stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_grub-pc stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_hdd stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_hooks stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_includes stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_iso stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_linux-image stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_loadlin stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_loopback_cfg stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_manifest stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_memtest stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_netboot stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_onie stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_package-lists stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_rootfs stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_syslinux stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_tar stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_win32-loader stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
binary_zsync stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
bootstrap add build & build stage success messages 2020-03-16 21:42:49 +00:00
bootstrap_archives stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
bootstrap_cache stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
bootstrap_debootstrap stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
build add build & build stage success messages 2020-03-16 21:42:49 +00:00
chroot add build & build stage success messages 2020-03-16 21:42:49 +00:00
chroot_apt stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_archives stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_cache stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_debianchroot stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_devpts stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_dpkg stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_firmware stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_hacks stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_hooks stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_hostname stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_hosts stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_includes stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_install-packages stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_interactive stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_linux-image stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_package-lists stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_preseed stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_proc stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_resolv stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_selinuxfs stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_sysfs stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_sysv-rc stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
chroot_tmpfs stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
clean locks: tidy lock acquisition 2020-03-13 15:37:38 +00:00
config stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +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 add build & build stage success messages 2020-03-16 21:42:49 +00:00
installer_debian-installer stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
installer_preseed stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source add build & build stage success messages 2020-03-16 21:42:49 +00:00
source_checksums stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_debian stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_disk stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_hdd stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_hooks stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_iso stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_live stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
source_tar stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00