Bug#815187: Bug debian-Installer (bookworm): Installation grub fails without error message

2023-06-27 Thread CJ Kucera
Package: installation-reports
Followup-For: Bug #815187

Submitting an installation-reports bug as requested per chat in #debian
on Libera.  Details of the installation problem are in Bug #815187


-- Package-specific info:

==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="12 (bookworm) - installer build 20230607"
X_INSTALLATION_MEDIUM=cdrom

==
Installer hardware-summary:
==
uname -a: Linux testbox 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 
(2023-05-08) x86_64 GNU/Linux
lspci -knn: 00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC 
[Natoma] [8086:1237] (rev 02)
lspci -knn: 00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA 
[Natoma/Triton II] [8086:7000]
lspci -knn: 00:01.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 
IDE [8086:7111] (rev 01)
lspci -knn: Kernel driver in use: ata_piix
lspci -knn: Kernel modules: ata_piix, ata_generic
lspci -knn: 00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter 
[15ad:0405]
lspci -knn: Subsystem: VMware SVGA II Adapter [15ad:0405]
lspci -knn: 00:03.0 Ethernet controller [0200]: Intel Corporation 82540EM 
Gigabit Ethernet Controller [8086:100e] (rev 02)
lspci -knn: Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter 
[8086:001e]
lspci -knn: Kernel driver in use: e1000
lspci -knn: Kernel modules: e1000
lspci -knn: 00:04.0 System peripheral [0880]: InnoTek Systemberatung GmbH 
VirtualBox Guest Service [80ee:cafe]
lspci -knn: 00:05.0 Multimedia audio controller [0401]: Intel Corporation 
82801AA AC'97 Audio Controller [8086:2415] (rev 01)
lspci -knn: Subsystem: Dell Device [1028:0177]
lspci -knn: Kernel driver in use: snd_intel8x0
lspci -knn: Kernel modules: snd_intel8x0
lspci -knn: 00:06.0 USB controller [0c03]: Apple Inc. KeyLargo/Intrepid USB 
[106b:003f]
lspci -knn: Kernel driver in use: ohci-pci
lspci -knn: Kernel modules: ohci_pci
lspci -knn: 00:07.0 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI 
[8086:7113] (rev 08)
lspci -knn: 00:0b.0 USB controller [0c03]: Intel Corporation 
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c]
lspci -knn: Kernel driver in use: ehci-pci
lspci -knn: Kernel modules: ehci_pci
lspci -knn: 00:0d.0 SATA controller [0106]: Intel Corporation 82801HM/HEM 
(ICH8M/ICH8M-E) SATA Controller [AHCI mode] [8086:2829] (rev 02)
lspci -knn: Kernel driver in use: ahci
lspci -knn: Kernel modules: ahci
usb-list: 
usb-list: Bus 01 Device 01: EHCI Host Controller [1d6b:0002]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00 Protocol 00
usb-list:Manufacturer: Linux 6.1.0-9-amd64 ehci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
usb-list: 
usb-list: Bus 02 Device 01: OHCI PCI host controller [1d6b:0001]
usb-list:Level 00 Parent 00 Port 00  Class 09(hub  ) Subclass 00 Protocol 00
usb-list:Manufacturer: Linux 6.1.0-9-amd64 ohci_hcd
usb-list:Interface 00: Class 09(hub  ) Subclass 00 Protocol 00 Driver hub
lsmod: Module  Size  Used by
lsmod: fuse  176128  0
lsmod: battery28672  0
lsmod: dm_mod184320  8
lsmod: raid1  53248  2
lsmod: md_mod192512  5 raid1
lsmod: xfs  1945600  0
lsmod: jfs   221184  0
lsmod: btrfs1777664  0
lsmod: xor24576  1 btrfs
lsmod: raid6_pq  122880  1 btrfs
lsmod: zstd_compress 294912  1 btrfs
lsmod: libcrc32c  16384  2 btrfs,xfs
lsmod: vfat   24576  0
lsmod: fat90112  1 vfat
lsmod: ext4  983040  3
lsmod: crc16  16384  1 ext4
lsmod: mbcache16384  1 ext4
lsmod: jbd2  167936  1 ext4
lsmod: crc32c_generic 16384  7
lsmod: e1000 163840  0
lsmod: isofs  53248  0
lsmod: usb_storage81920  0
lsmod: sd_mod 65536  8
lsmod: t10_pi 16384  1 sd_mod
lsmod: sr_mod 28672  0
lsmod: crc64_rocksoft 20480  1 t10_pi
lsmod: crc64  20480  1 crc64_rocksoft
lsmod: cdrom  81920  2 isofs,sr_mod
lsmod: crc_t10dif 20480  1 t10_pi
lsmod: crct10dif_common   16384  1 crc_t10dif
lsmod: ata_generic16384  0
lsmod: ohci_pci   20480  0
lsmod: ahci   49152  6
lsmod: ata_piix   45056  0
lsmod: libahci49152  1 ahci
lsmod: ohci_hcd   61440  1 ohci_pci
lsmod: snd_intel8x0   49152  0
lsmod: ehci_pci   20480  0
lsmod: ehci_hcd  102400  1 ehci_pci
lsmod: snd_ac97_codec 

Bug#815187: Bug debian-Installer (bookworm): Installation grub fails without error message

2023-06-27 Thread CJ Kucera
François POLASTRON wrote:
> I found a big bug in debian-Installer on a "BIOS Legacy" computer
> When trying to force grub installation in other device than primary disk, in 
> graphical mode the menu lets the user choose the device:
> /dev/sda
> /dev/sdb
> ...
> But when we choose one of a device debian-Installer don't install GRUB 
> WITHOUT 
> ERROR MESSAGE. 
> 
> In fact we must enter the device with the keyboard taping "/dev/sda"... to 
> contourn the bug. 

Good morning!

Just popping in to say that I've run into this exact problem on Debian
12 (Bookworm) as well.  I'm installing onto a system with two drives in
a raid1 config, so the installer presents a dialog with these choices
for installing GRUB:

- Enter device manually
- /dev/sda  (ata-VBOX_HARDDISK_VBcb2c038a-37db3d41)
- /dev/sdb  (ata-VBOX_HARDDISK_VB9084690a-b32386db)

If choose "Enter device manually", and type in "/dev/sda", I get two
statuses shown on the next progress bar:

1. running "grub-install /dev/sda"
2. running "update-grub"

If I instead pick the dropdown entry for "/dev/sda", the installer skips
the "grub-install" step and goes right to "update-grub," which leaves the
freshly-installed OS in an unbootable state.

Interestingly, if I *manually* type in /dev/sda (which installs GRUB
properly) and then go back and re-install GRUB using the dropdown entry,
from that point forward the dropdown selection works and I get the
"grub-install" step properly.

On a system which didn't get the grub-install step (so is unbootable), I
can at least boot into recovery mode and reinstall GRUB from there,
which requires just typing in /dev/sda and fixes things up.

I'm attaching the contents of /var/log from the installer after choosing
the menu item version (which skips grub-install), though I don't see
anything too obviously useful in there myself.

Let me know if I can provide any more info.

Cheers,
CJ


syslog.gz
Description: application/gzip


partman.gz
Description: application/gzip


firmware-summary.gz
Description: application/gzip