Your message dated Fri, 17 Jan 2025 22:34:52 +0000 with message-id <e1tyuvu-002hyk...@fasolo.debian.org> and subject line Bug#1058638: fixed in grub-installer 1.207 has caused the Debian Bug report #1058638, regarding grub-installer: boot fails: $bootdev empty [BIOS/MBR, Vista, 2 disks]: Installing grub on '' to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 1058638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058638 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Source: grub-installer Version: 1.194 Severity: important Tags: d-i Whilst helping user "mavaviij" in matrix Debian room I was able to reproduce in a virtual machine a bug that causes the Debian install to fail to boot with a blinking cursor after install. After a lot of code-chasing it appears the problem is that grub-installer script fails to set its $bootdev variable: grub-installer: info: Installing grub on '' (note the empty quotes) The target system has two 'disks'. The first has Microsoft Windows Vista with 2 NTFS partitions using msdos label/MBR. The second is empty and intended for the Debian OS and boot-loader. The system boots in BIOS/Legacy/CSM mode. I've not been able to trace back through the code to figure out why the failure occurs. I have however identifed what may be a clue: the Debian OS disk sector 0 appears to contain GRUB's g2hdr.img which makes me wonder if grub-ntldr-img was used - although not sure how that is done and see no sign of it in the (saved) installer logs. Reproducer: Using debian-12.4.0-amd64-netinst.iso fallocate -l 1000000000 disk1-windows-vista.bin fallocate -l 2000000000 disk2-debian-12.bin fdisk disk1-windows-vista.bin #new: 1, default,512M #type: 1, 07 #new: 2, default, default #type: 2, 07 #write sudo losetup -P --show -f disk1-windows-vista.bin # /dev/loop0 sudo mount /dev/loop0p1 /mnt/tmp/ # fool os-prober into detecting Vista sudo mkdir /mnt/tmp/boot sudo touch /mnt/tmp/bootmgr echo "W i n d o w s V i s t a " | sudo dd of=/mnt/tmp/boot/bcd find /mnt/tmp/ -ls; hexdump -C /mnt/tmp/boot/bcd 5 4 drwxrwxrwx 1 root root 4096 Dec 13 14:41 /mnt/tmp/ 64 0 drwxrwxrwx 1 root root 0 Dec 13 14:42 /mnt/tmp/boot 65 1 -rwxrwxrwx 1 root root 27 Dec 13 14:32 /mnt/tmp/boot/bcd 67 0 -rwxrwxrwx 1 root root 0 Dec 13 14:41 /mnt/tmp/bootmgr 00000000 57 20 69 20 6e 20 64 20 6f 20 77 20 73 20 20 20 |W i n d o w s | 00000010 56 20 69 20 73 20 74 20 61 20 0a |V i s t a .| 0000001b sudo umount /mnt/tmp sudo os-prober /dev/loop0p1:Windows Vista:Windows:chain Now create a (libvirt/QEMU) VM guest with the 2 disk images attached and go through the install procedure choosing the unpartitioned second disk as the target. At the question about installing the boot loader to the "primary disk" answer No, then when the option to select which boot device to use choose the 2nd disk where Debian is installed. Save debug logs, restart VM, and even if using the SeaBIOS boot menu via pressing Esc key, choosing the VirtIO boot device results in blinking cursor. Examine disk images and note that disk2 appears to have GRUB's g2hdr.img in sector 0. hexdump -C -n 512 disk2-debian-12.bin 00000000 fa b8 00 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0 |................| 00000010 fb be 00 7c bf 00 06 b9 00 02 f3 a4 ea 21 06 00 |...|.........!..| 00000020 00 be be 07 38 04 75 0b 83 c6 10 81 fe fe 07 75 |....8.u........u| 00000030 f3 eb 16 b4 02 b0 01 bb 00 7c b2 80 8a 74 01 8b |.........|...t..| 00000040 4c 02 cd 13 ea 00 7c 00 00 eb fe 00 00 00 00 00 |L.....|.........| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 13 43 3c 32 00 00 00 04 |.........C<2....| 000001c0 01 04 83 fe c2 ff 00 08 00 00 00 90 3b 00 00 00 |............;...| 000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 NOTE: on an UEFI system doing the reproducer one needs to edit /usr/lib/os-probes/mounted/20microsoft and comment out the test for UEFI on lines 11-14 if wanting to manually test os-prober outside the running installer.
--- End Message ---
--- Begin Message ---Source: grub-installer Source-Version: 1.207 Done: Holger Wansing <hwans...@mailbox.org> We believe that the bug you reported is fixed in the latest version of grub-installer, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1058...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Holger Wansing <hwans...@mailbox.org> (supplier of updated grub-installer package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Fri, 17 Jan 2025 22:47:16 +0100 Source: grub-installer Architecture: source Version: 1.207 Distribution: unstable Urgency: medium Maintainer: Debian Install System Team <debian-b...@lists.debian.org> Changed-By: Holger Wansing <hwans...@mailbox.org> Closes: 1035096 1058638 Changes: grub-installer (1.207) unstable; urgency=medium . * Team upload. . * Fix wrong or empty bootdev value for grub-pc. Closes: #1035096, #1058638. . [ Updated translations ] * Persian (fa.po) by Danial Behzadi * Hungarian (hu.po) by Szia Tomi Checksums-Sha1: d48c81a668c326ea6355dee0c0270c48484e7d47 2081 grub-installer_1.207.dsc b7cb680f232e38d2c1158e480575e3c040752d9f 235988 grub-installer_1.207.tar.xz 9f9287c79ed1905009c00d1a72cc0333cb783f9a 6452 grub-installer_1.207_amd64.buildinfo Checksums-Sha256: c2e62606ec73a69cd12151e82aeb3fc1dfffbde33a9ae0ec55b75a561ca7b500 2081 grub-installer_1.207.dsc 924b0c2f6aabc055a92177387091e3721941797ef28a0a4cac3c046b81032adb 235988 grub-installer_1.207.tar.xz 993541beefd9b35d920cbe30bc493e68564f7648ed7117a482ad2188af271d8d 6452 grub-installer_1.207_amd64.buildinfo Files: 20ea30299589747ea25060f2c03adf16 2081 debian-installer standard grub-installer_1.207.dsc ba38b07d6b0523f7d91d91a2d3a1c820 235988 debian-installer standard grub-installer_1.207.tar.xz 07210cc35549c425dba3d44ee2d3625b 6452 debian-installer standard grub-installer_1.207_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQJJBAEBCgAzFiEESWrG6BRCSzSFCDUpWfGHyhVusHYFAmeK0ocVHGh3YW5zaW5n QG1haWxib3gub3JnAAoJEFnxh8oVbrB2c0IP/jdaF11ozIxM6LNwNqbTOMeOg92f YifujzBhMLqoLJZgjI9LXoI5b4EhtWhC/GaMpTVZe8Hnl8dhpNpLUZmDbSxJGYkC PbRR4uSrBvbOae3uqpmYA8DAwVL5VtEaMKnIapwbWwXfR2VnXI8lPnwj+FtIMYyS XAj2NczjZZqpniN4ENPGUOlBAocv2zUIjG4GZ25e6TFMQlU8zs061Lou7FXIkFuC bb5KkDPh03AKGw4dFhJNVfOuLOpOQrpVd5hXLH0Uq+J0p1PlnN45WT2Wnzhj7PzF aq3zitASF9Ru82HEDeNgMvLYI7OKhKqaIqklVhNxJ3TKD/UVmh6p5IK6TqmrzwMv /JhmVHA9HIBpIk2QjKHI3LlkzF/UBKgS18ygsvVTYcbQeWMHklGj/xPI4DOqFsTR AMLc/zp6JWfqI1hFYNNBurY2zsleKPhEXUbZc6EvbXE28Pv6+5zWr4hx2AhF5ZkF /d4y80GaRwnpd352r+ZwC+uNr7gP4cqVnwXndTBB4kxYUgY76SjCf9PHDuw57cPv yDI1t28oe25lWdvvIeX5PbvFuMyJZ6vYj+KWGH0TU3shh3Ff1KNLfsGYZWK/IEd1 YgqNop6QZZug3LMbkdbZviNFydZbiP58ncn2r8gTrzhdMYJVJA3zedqqxiPzyHKC tgcp2lLa6TBlXASs =Yatd -----END PGP SIGNATURE-----pgpC41ckvNCY6.pgp
Description: PGP signature
--- End Message ---