live-build/scripts/build
Lyndon Brown fd18d46e0e grub2|loopback: avoid perl for live entry creation, use temp file
instead of cramming the live entries into a string via a layer of functions
for terminating entries with newlines, which we then have to run through
perl to tweak the newlines for correct use with sed... let's write the
entries to a temp file, then use that file in the sed replacement.

the helper functions injecting newlines to the end of entries as they were
built into a long string have obviously become unnecessary and so were
removed. one function was renamed for reasons of consistency and clarity.

the file is initially deleted before use for reasons of wanting to bullet
proof the codebase to work properly under conditions of recovering from
failure/cancellation, `--force` re-running and such.

this removes the last use of perl.

Gbp-Dch: Short
2020-05-01 09:40:40 +00: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 grub2|loopback: avoid perl for live entry creation, use temp file 2020-05-01 09:40:40 +00: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 syslinux: fix errors re-running under --force 2020-04-30 07:52:37 +01: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 config: optimise --ignore-system-defaults 2020-04-30 19:37:51 +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