live-build/scripts/build
adrian15 9220bde3df grub-efi: fix partial broken boot capability
when used alongside syslinux and when a single kernel flavour is used,
things work correctly. otherwise booting from EFI is broken.

the problem comes from the fact that syslinux, for a single kernel flavour
creates the file /live/vmlinuz, which is used by the minimal EFI grub.cfg
to locate the device and partition containing the live image. when multiple
kernel flavours are used, it instead creates /live/vmlinuz1, /live/vmlinuz2,
etc. which thus is a problem. similarly when syslinux is not used, you are
left only with long filenames for the kernel files, for example
/live/vmlinuz-4.19.0-8-amd64. in these situations grub cannot find the
device containing the image and thus fails to display the boot menu.

the solution here, instead of dynamically changing the filename searched
for depending upon bootloader configuration, switches to doing a search for
the file /.disk/info instead. this file is generated by binary_disk, and
is present for iso, iso-hybrid and hdd images types, though grub-efi cannot
be used for the hdd type. it is not created for the netboot type, but again,
grub-efi is not compatible with that anyway. it is not created for the tar
type, which the grub-efi script does not block as incompatible, but is this
not a mistake?

furthermore, switching to searching for /.disk/info helps avoid issues for
systems that happen to actually include a real /live/vmlinuz path other
than on a removable live disk or CD/DVD, as is the case with a HP system
discussed in #924053.

this patch was written by adrian15sgd@gmail.com, as per the authorship,
who attached it to the #924053 bug discussion. this commit message however
has been re-written by jnqnfe@gmail.com, prior to submission via an MR,
as part of the fix towards the issues reported in #956131.

Gbp-Dch: Short
Closes: #924053
2020-04-23 10:56:51 +02:00
..
binary stagefiles: simplify & robustify 2020-03-17 18:57:02 +00:00
binary_checksums strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
binary_chroot stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_disk strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
binary_grub-efi grub-efi: fix partial broken boot capability 2020-04-23 10:56:51 +02:00
binary_grub-legacy bootloaders: remove old "video=vesa:ywrap,mtrr" kernel param, as done in d-i 2020-03-22 19:43:56 +00:00
binary_grub-pc stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_hdd stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_includes stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_iso binary_iso: remove duplicate xorriso param 2020-03-20 16:17:16 +00:00
binary_linux-image stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_loadlin loadlin: fix missing directory error 2020-04-01 19:04:14 +00:00
binary_loopback_cfg grub2|loopback: define common target 2020-04-23 10:18:41 +02:00
binary_manifest stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_memtest stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_netboot stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_onie stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_package-lists strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
binary_rootfs stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_syslinux syslinux: overwrite default files with user ones 2020-04-23 09:59:56 +02:00
binary_tar stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
binary_win32-loader strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
binary_zsync stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
bootstrap add build & build stage success messages 2020-03-16 21:42:49 +00:00
bootstrap_archives archives: param is required 2020-03-20 11:43:01 +00:00
bootstrap_cache bootstrap_cache: validate action param 2020-04-01 18:03:20 +00:00
bootstrap_debootstrap stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
build build: fix misleading message 2020-04-20 10:16:14 +00:00
chroot add build & build stage success messages 2020-03-16 21:42:49 +00:00
chroot_apt strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
chroot_archives archives: clarify var 2020-03-20 11:43:01 +00:00
chroot_cache stagefiles: fix doc mistake 2020-03-17 22:09:51 +00:00
chroot_debianchroot stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_devpts stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_dpkg stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_firmware strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
chroot_hacks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_hostname stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_hosts stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00: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 stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_preseed stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_proc stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_resolv stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_selinuxfs stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_sysfs stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_sysv-rc stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
chroot_tmpfs stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
clean locks: tidy lock acquisition 2020-03-13 15:37:38 +00:00
config args: fix a typo 2020-03-23 08:06:51 +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 strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
installer_preseed strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source add build & build stage success messages 2020-03-16 21:42:49 +00:00
source_checksums strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source_debian strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source_disk strip progress-linux distro hacks 2020-03-20 10:19:33 +00:00
source_hdd stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_hooks stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_iso stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_live stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00
source_tar stagefiles: s/Require_stagefile/Require_stagefiles/ 2020-03-17 22:59:37 +00:00