Bug#1111119: cdrom: Debian CD or Live disk fails if it is not the first bay
On 15/08/2025 19:56, Thomas Schmitt wrote:
I idimly remember that there are searches for the /.disk directory of
media.
Please, forgive me if it is not relevant, but even regular (not related
to installer) grub builds prefer to look for ".disk/info" and
".disk/mini-info"
if [ -z "\$prefix" -o ! -e "\$prefix" ]; then
if ! search --file --set=root /.disk/info; then
search --file --set=root /.disk/mini-info
fi
set prefix=(\$root)/boot/grub
fi
and tries the directory with the loaded .efi file after that:
source \$cmdpath/grub.cfg
<https://sources.debian.org/src/grub2/2.12-9/debian/build-efi-images#L62>
I expect that it affects at least the case with custom GRUB_DISTRIBUTOR
in /etc/default/grub, so .efi files are installed into a directory other
than compiled-in path EFI/debian, and grub.cfg from some other disk with
.disk/info may be loaded instead.
$cmdpath was added by a patch for grub-2.12 and it was not available in
grub-2.06 (bookworm).
Sorry, I did not reported it as grub bug a year ago when I noticed it
during discussion on debian-user.
Reply to: