Bug#1033686: installation-reports: non-bootable install due to no UEFI entries

2023-03-30 Thread Andres Salomon

I was asked in #debian-boot for the output of efibootmgr -v:


BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0001,0002,0003,0004,0005,0007
Boot* 
ubuntu	HD(1,GPT,54fdc960-7b34-4ff5-a95f-83dd7a4d6ab3,0x800,0x10)/File(\EFI\ubuntu\shimx64.efi)

Boot0001* Diskette DriveBBS(Floppy,Diskette Drive,0x0)..BO
Boot0002* M.2 PCIe SSD  BBS(HD,Micron 2200S NVMe 256GB ,0x0)..BO
Boot0003* USB Storage DeviceBBS(USB,USB Storage Device,0x0)..BO
Boot0004* CD/DVD/CD-RW DriveBBS(CDROM,CD/DVD/CD-RW Drive,0x0)..BO
Boot0005* Onboard NIC   BBS(Network,IBA CL Slot 00FE v0110,0x0)..BO
Boot0006* Windows Boot 
Manager	HD(2,GPT,8f2f7ac4-db5d-4a70-95ed-f086712eb7a0,0x109000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}
Boot0007* 
debian	PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-A0-75-01-25-65-56-7E)/HD(1,GPT,86047261-ce5a-40e9-841e-d8ae32870d9a,0x800,0x10)/File(\EFI\debian\grubx64.efi)
Boot0008* 
debian	HD(1,GPT,86047261-ce5a-40e9-841e-d8ae32870d9a,0x800,0x10)/File(\EFI\debian\shimx64.efi)




I, uh, don't have a great explanation for how that weird list of 
entries came to be-  other than the drive probably had Windows on it 
originally, and then it had Mint on it when I got my hands on it (which 
would've used ubuntu kernels/shims/whatever), and then I've installed 
debian bookworm twice on it so far? But honestly, who knows. *shrug*




Bug#1033686: installation-reports: non-bootable install due to no UEFI entries

2023-03-30 Thread Andres Salomon
Oh duh, the nvram is on the board itself, not on the disk drive. Okay, 
that makes more sense. The machine itself came with windows, and then I 
had a different drive in it with Debian on it. Originally legacy mode, 
at some point I switched to EFI and used both shimx64.efi and 
grubx64.efi at alternative points in the BIOS. So that was added by me 
in the BIOS, not d-i!


And then I installed this drive, which had Mint on it, and I added an 
entry in the BIOS to boot it.




Bug#1033678: installation-reports: Unbootable install: MBR partition unusable with UEFI

2023-03-30 Thread Dima Kogan
Pascal Hambourg  writes:

> On 30/03/2023 at 01:21, Dima Kogan wrote:
>> I had to turn off
>> secure-boot and UEFI in the BIOS.
>
> Why ? What happens if UEFI boot is enabled ?

If UEFI was enabled, the USB device isn't seen by the machine in its
list of valid boot devices


> How did you prepare the USB drive ? What installation image did you
> use (full file name and URL please) ?

>From yesterday's email:

  I downloaded this:

debian-bookworm-DI-alpha2-amd64-netinst.iso

  from here:

https://cdimage.debian.org/cdimage/bookworm_di_alpha2/amd64/iso-cd/

  and I wrote that .iso to /dev/sde

I did "cp debian-bookworm-DI-alpha2-amd64-netinst.iso /dev/sde"


>> I'm not 100% sure of the exact cause. But I suspect strongly is that
>> booting the install media without UEFI broke installing to an UEFI-only
>> disk.
>
> If the installer was booted in BIOS/legacy mode, it installed GRUB for
> legacy boot.

Was this a choice the installer made, or was it the only option? I don't
actually have a workaround yet. And if the installer had a check box to
ask for a GPT even though the install media was booted without UEFI,
then I could at least get this working after some fiddling.



Bug#1033688: installation-reports: full-disk encryption partitioning takes way too long

2023-03-30 Thread Andres Salomon
This didn't make it to the list due to attachment size. For 
attachments, see

https://bugs.debian.org/1033688

On Thu, Mar 30 2023 at 02:36:48 AM -04:00:00, Andres Salomon 
 wrote:

Package: installation-reports

Boot method: usb stick
Image version: March 26 2023 image 
(https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso)

Date: March 30th 2023  02:30am

Machine: Dell Latitude E7470
Processor: Intel i5-6300U
Memory: 16GB
Partitions:

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Micron 2200S NVMe 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: EB75FC3A-C6E7-444E-BAB5-1255ABE5BF4D

Device   Start   End   Sectors   Size Type
/dev/nvme0n1p12048   1050623   1048576   512M EFI System
/dev/nvme0n1p2 1050624   2050047999424   488M Linux filesystem
/dev/nvme0n1p3 2050048 500117503 498067456 237.5G Linux filesystem


Output of lspci -knn (or lspci -nn):

00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 
v5/6th Gen Core Processor Host Bridge/DRAM Registers [8086:1904] (rev 
08)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake 
GT2 [HD Graphics 520] [8086:1916] (rev 07)

DeviceName:  Onboard IGD
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon 
E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem 
[8086:1903] (rev 08)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device_pci_legacy
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 
3.0 xHCI Controller [8086:9d2f] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 Signal processing controller [1180]: Intel Corporation 
Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:16.0 Communication controller [0780]: Intel Corporation Sunrise 
Point-LP CSME HECI #1 [8086:9d3a] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:16.3 Serial controller [0700]: Intel Corporation Sunrise Point-LP 
Active Management Technology - SOL [8086:9d3d] (rev 21)
	Subsystem: Dell Sunrise Point-LP Active Management Technology - SOL 
[1028:06dc]

Kernel driver in use: serial
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP 
SATA Controller [AHCI mode] [8086:9d03] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #5 [8086:9d14] (rev f1)

Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #9 [8086:9d18] (rev f1)

Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1d.2 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #11 [8086:9d1a] (rev f1)

Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC 
Controller [8086:9d48] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP 
PMC [8086:9d21] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD 
Audio [8086:9d70] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_skl
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus 
[8086:9d23] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet 
Connection I219-LM [8086:156f] (rev 21)

Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: e1000e
Kernel modules: e1000e
01:00.0 Network controller [0280]: Intel Corporation Wireless 7265 
[8086:095a] (rev 59)

Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5410]
Kernel driver in use: iw

Re: Bug#1033686: installation-reports: non-bootable install due to no UEFI entries

2023-03-30 Thread Andres Salomon
[I'm manually sending the bug report since it never made it to the list 
due to attachment size. See the BTS to view attachments: 
https://bugs.debian.org/1033686 ]



Package: installation-reports

Boot method: usb stick
Image version: March 26 2023 image
(https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso)
Date: March 30th 2023  01:30am

Machine: Dell Latitude E7470
Processor: Intel i5-6300U
Memory: 16GB
Partitions:

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Micron 2200S NVMe 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: FA0C6048-0B58-4E48-BEA6-5C6BAA9CF15B

Device Start   End   Sectors  Size Type
/dev/nvme0n1p1  2048   1050623   1048576  512M EFI System
/dev/nvme0n1p2   1050624 498116607 497065984  237G Linux filesystem
/dev/nvme0n1p3 498116608 500117503   2000896  977M Linux swap



Output of lspci -knn (or lspci -nn):


00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500
v5/6th Gen Core Processor Host Bridge/DRAM Registers [8086:1904] (rev
08)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2
[HD Graphics 520] [8086:1916] (rev 07)
DeviceName:  Onboard IGD
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon
E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
[8086:1903] (rev 08)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device_pci_legacy
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB
3.0 xHCI Controller [8086:9d2f] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise
Point-LP Thermal subsystem [8086:9d31] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:16.0 Communication controller [0780]: Intel Corporation Sunrise
Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:16.3 Serial controller [0700]: Intel Corporation Sunrise Point-LP
Active Management Technology - SOL [8086:9d3d] (rev 21)
Subsystem: Dell Sunrise Point-LP Active Management Technology - SOL
[1028:06dc]
Kernel driver in use: serial
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA
Controller [AHCI mode] [8086:9d03] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI
Express Root Port #5 [8086:9d14] (rev f1)
Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI
Express Root Port #9 [8086:9d18] (rev f1)
Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1d.2 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI
Express Root Port #11 [8086:9d1a] (rev f1)
Subsystem: Dell Sunrise Point-LP PCI Express Root Port [1028:06dc]
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC
Controller [8086:9d48] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP
PMC [8086:9d21] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD
Audio [8086:9d70] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_skl
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus
[8086:9d23] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet
Connection I219-LM [8086:156f] (rev 21)
Subsystem: Dell Latitude E7470 [1028:06dc]
Kernel driver in use: e1000e
Kernel modules: e1000e
01:00.0 Network controller [0280]: Intel Corporation Wireless 7265
[8086:095a] (rev 59)
Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5410]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
02:00.0 N

Bug#1033686: installation-reports: non-bootable install due to no UEFI entries

2023-03-30 Thread Andres Salomon
After a discussion on IRC, I tried doing the installation in expert 
mode and forcing installation of grub onto the removable media path:


https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path

The machine successfully booted after the installation completed.

My understanding from IRC is that installing Debian's grub onto the 
removable media path is _technically_ wrong, but it is what Windows 
does and various firmwares out there are broken without it. Doing this, 
however, means clobbering any other OS's UEFI bootloader that was 
previously installed there.


Because every BIOS has a different interface for fixing this kind of 
thing, it's not very nice for users to have to fix a non-bootable fresh 
install. If we can *reliably* detect that there's no other OS installed 
during the grub installation.. I'd vote for just going ahead and 
installing onto the removable media path by default in that scenario.


I don't have any suggestions for what to do in the case of someone 
installing onto a machine that is intending to dual-boot Debian with 
another OS. It's been a decades since I've dealt with dual-booting x86 
machines.




On Thu, Mar 30 2023 at 03:40:00 AM -04:00:00, Andres Salomon 
 wrote:
Oh duh, the nvram is on the board itself, not on the disk drive. 
Okay, that makes more sense. The machine itself came with windows, 
and then I had a different drive in it with Debian on it. Originally 
legacy mode, at some point I switched to EFI and used both 
shimx64.efi and grubx64.efi at alternative points in the BIOS. So 
that was added by me in the BIOS, not d-i!


And then I installed this drive, which had Mint on it, and I added an 
entry in the BIOS to boot it.