Repository navigation
Commit 68cea42
Point grub-installer at the target disk, not the installer USB
The preseed sets grub-installer/bootdev to "default", which also marks the
question as seen. grub-installer then takes this path:
db_fget grub-installer/bootdev seen
if [ "$RET" = true ] && db_get grub-installer/bootdev && [ "$RET" ]; then
if [ "$RET" = "default" ]; then
bootdev=$default_bootdev
$default_bootdev is the first grub-mkdevicemap entry -- (hd0), the installer
USB itself. The safeguard against installing onto the installation media only
runs in the *:grub-pc branch, so nothing protects a UEFI install.
The EFI install still succeeds, because grub-install writes to the ESP on the
real disk, but the step then exits 1 reading the ISO9660 partition table:
grub-installer: info: Installing grub on '/dev/sda'
grub-installer: info: grub-install ran successfully
main-menu: (process:10646): Can't read partition table from /dev/sda
main-menu: WARNING **: Configuring 'grub-installer' failed with error code 1
Reuse the non-USB disk list already computed for partman. Verified by a local
QEMU UEFI USB install of the Debian 13.5.0 unattended ISO, which now completes
the installer in ~4 minutes instead of stalling on the failure dialog.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent b5b6d12 commit 68cea42
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments