Bug#991171: installation-reports: MBR Partitioned USB drives cannot be found during UEFI installation

2021-07-16 Thread Ruben Vorderman
Package: installation-reports
Severity: important
Tags: d-i
X-Debbugs-Cc: rubenvorder...@xs4all.nl

Boot method: USB (FAT32 with image simply extracted)
Image version: https://cdimage.debian.org/cdimage/bullseye_di_rc2/amd64/iso-
cd/debian-bullseye-DI-rc2-amd64-netinst.iso
Date: 

Machine: Lenovo Thinkpad T430
Partitions: 

Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   EndSizeFile system Name  Flags
 1  1049kB  269MB  268MB   fat32   EFI System Partition  boot, esp
 2  269MB   108GB  107GB   ext4
 4  108GB   492GB  384GB   ext4
 3  492GB   500GB  8590MB  linux-swap(v1)swap


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O]
Detect network card:[O]
Configure network:  [O]
Detect media:   [E]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:[O]
Detect hard drives: [O]
Partition hard drives:  [O]
Install base system:[O]
Install tasks:  [O]
Install boot loader:[O]
Overall install:[O]

Comments/Problems:

Simply extracting the ISO to a FAT32 partitioned USB stick and using UEFI
install by default always has been the easiest way to get a bootable USB stick
going. (I shun dd). The boot worked fine. But then it could not find the
install medium during the installation process. The usb device showed up as
/dev/sdb, but the partition /dev/sdb1 would not show up.

The solution was to use gparted to create a new GPT partition table on the USB
stick, add a FAT32 partition and extract the image to that. That solved the
problem. I was able to continue the installation after the detect-media stage.

Kind of strange that the Debian installer had issues recognizing the device
while the system BIOS had no problems recognising the MBR table + FAT partition
with UEFI image as bootable.

This was a very puzzling error. I happened to think of the solution by some
random chance within a day, but this easily could have had me puzzled for a
much longer time. That is why I filed it as "important".

The rest of the installation went smoothly. No complaints there. Thanks for all
the great work!


-- Package-specific info:

==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="11 (bullseye) - installer build 20210606"
X_INSTALLATION_MEDIUM=cdrom

==
Installer hardware-summary:
==
uname -a: Linux tuxpad 5.10.0-7-amd64 #1 SMP Debian 5.10.40-1 (2021-05-28) 
x86_64 GNU/Linux
lspci -knn: 00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core 
processor DRAM Controller [8086:0154] (rev 09)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen 
Core processor Graphics Controller [8086:0166] (rev 09)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 
Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
lspci -knn: Subsystem: Lenovo ThinkPad T430 [17aa:21f3]
lspci -knn: Kernel driver in use: xhci_hcd
lspci -knn: Kernel modules: xhci_pci
lspci -knn: 00:16.0 Communication controller [0780]: Intel Corporation 7 
Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM 
Gigabit Network Connection (Lewisville) [8086:1502] (rev 04)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: Kernel driver in use: e1000e
lspci -knn: Kernel modules: e1000e
lspci -knn: 00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 
Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: Kernel driver in use: ehci-pci
lspci -knn: Kernel modules: ehci_pci
lspci -knn: 00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 
Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
lspci -knn: Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: Kernel driver in use: snd_hda_intel
lspci -knn: Kernel modules: snd_hda_intel
lspci -knn: 00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset 
Family PCI Express Root Port 1 [8086:1e10] (rev c4)
lspci -knn: Kernel driver in use: pcieport
lspci -knn: 00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series 
Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)
lspci -knn: Kernel driver in use: pcieport
lspci -knn: 00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 
Chipset Family USB Enhanced Host Control

Bug#991172: installation-reports: MBR Partitioned USB drives cannot be found during UEFI installation

2021-07-16 Thread Ruben Vorderman

Package: installation-reports
Severity: important
Tags: d-i
X-Debbugs-Cc: rubenvorder...@xs4all.nl

Boot method: USB (FAT32 with image simply extracted)
Image version: https://cdimage.debian.org/cdimage/bullseye_di_rc2/amd64/iso-
cd/debian-bullseye-DI-rc2-amd64-netinst.iso
Date: July 5th

Machine: Lenovo Thinkpad T430
Partitions: 

Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system Name  Flags
 1  1049kB  269MB  268MB   fat32   EFI System Partition  
boot, esp

 2  269MB   108GB  107GB   ext4
 4  108GB   492GB  384GB   ext4
 3  492GB   500GB  8590MB linux-swap(v1)    swap


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O]
Detect network card:    [O]
Configure network:  [O]
Detect media:   [E]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Detect hard drives: [O]
Partition hard drives:  [O]
Install base system:    [O]
Install tasks:  [O]
Install boot loader:    [O]
Overall install:    [O]

Comments/Problems:

Simply extracting the ISO to a FAT32 partitioned USB stick and using UEFI
install by default always has been the easiest way to get a bootable USB 
stick

going. (I shun dd). The boot worked fine. But then it could not find the
install medium during the installation process. The usb device showed up as
/dev/sdb, but the partition /dev/sdb1 would not show up.

The solution was to use gparted to create a new GPT partition table on 
the USB

stick, add a FAT32 partition and extract the image to that. That solved the
problem. I was able to continue the installation after the detect-media 
stage.


Kind of strange that the Debian installer had issues recognizing the device
while the system BIOS had no problems recognising the MBR table + FAT 
partition

with UEFI image as bootable.

This was a very puzzling error. I happened to think of the solution by some
random chance within a day, but this easily could have had me puzzled for a
much longer time. That is why I filed it as "important".

The rest of the installation went smoothly. No complaints there. Thanks 
for all

the great work!


-- Package-specific info:

==
Installer lsb-release:
==
DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="11 (bullseye) - installer build 20210606"
X_INSTALLATION_MEDIUM=cdrom

==
Installer hardware-summary:
==
uname -a: Linux tuxpad 5.10.0-7-amd64 #1 SMP Debian 5.10.40-1 
(2021-05-28) x86_64 GNU/Linux
lspci -knn: 00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core 
processor DRAM Controller [8086:0154] (rev 09)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:02.0 VGA compatible controller [0300]: Intel Corporation 
3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:14.0 USB controller [0c03]: Intel Corporation 7 
Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] 
(rev 04)

lspci -knn:     Subsystem: Lenovo ThinkPad T430 [17aa:21f3]
lspci -knn:     Kernel driver in use: xhci_hcd
lspci -knn:     Kernel modules: xhci_pci
lspci -knn: 00:16.0 Communication controller [0780]: Intel Corporation 7 
Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn: 00:19.0 Ethernet controller [0200]: Intel Corporation 
82579LM Gigabit Network Connection (Lewisville) [8086:1502] (rev 04)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn:     Kernel driver in use: e1000e
lspci -knn:     Kernel modules: e1000e
lspci -knn: 00:1a.0 USB controller [0c03]: Intel Corporation 7 
Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] 
(rev 04)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn:     Kernel driver in use: ehci-pci
lspci -knn:     Kernel modules: ehci_pci
lspci -knn: 00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 
Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)

lspci -knn:     Subsystem: Lenovo Device [17aa:21f3]
lspci -knn:     Kernel driver in use: snd_hda_intel
lspci -knn:     Kernel modules: snd_hda_intel
lspci -knn: 00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 
Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)

lspci -knn:     Kernel driver in use: pcieport
lspci -knn: 00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 
Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)

lspci -knn:     Kernel driver in use: pcieport
lspci -knn: 00:1d.0 USB controller [0c03]: Intel Corporation 7 
Series/C216 Chipset Famil

Bug#991177: libdebian-installer: reproducible builds: Embeds build path in libdebian-installer-extra.so.*

2021-07-16 Thread Vagrant Cascadian
Source: libdebian-installer
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The build path is embedded in various places in
libdebian-installer-extra.so.*:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libdebian-installer.html

  ./usr/lib/x86_64-linux-gnu/libdebian-installer-extra.so.4.0.8 

  /build/1st/libdebian-installer-0.121/build/src/../../src/list.c:30
  vs.
  /build/2/libdebian-installer-0.121/2nd/build/src/../../src/list.c:30

The attached patch fixes this by passing -ffile-prefix-map to CFLAGS in
debian/rules.

Alternately, with recent versions of dpkg, using dpkg-buildflags to set
CFLAGS should pass this option by default.


Thanks for maintaining libdebian-installer!


live well,
  vagrant
From 5222acd3ccb659da12cb877398375ceab2a44388 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian 
Date: Fri, 16 Jul 2021 13:59:17 +
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to CFLAGS.

This avoids embedding the build path in the resulting binaries and
debug symbols.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 4 
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7307a7b..0f394c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ DEB_HOST_ARCH_OS:= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
 #CFLAGS = -Wall -W -Werror -ggdb -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
 CFLAGS = -Wall -W -ggdb -Wmissing-declarations
 
+# Avoid embedding build paths in the binaries
+# https://reproducible-builds.org/docs/build-path/
+CFLAGS += -ffile-prefix-map=$(CURDIR)=.
+
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
 else
-- 
2.32.0



signature.asc
Description: PGP signature


Bug#991178: installation-reports

2021-07-16 Thread Peter Ehlert

Package: installation-reports

Boot method: USB stick
Image version: 
https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/bullseye_di_rc2+nonfree/amd64/iso-cd/firmware-bullseye-DI-rc2-amd64-netinst.iso


Date: 15 Jul 2021 02:00 PM PDT

Machine:
Type: Laptop System: Hewlett-Packard product: HP EliteBook 820 G2
  v: A3009DD18303 serial: 
  Mobo: Hewlett-Packard model: 225A v: KBC Version 96.58
  serial:  BIOS: Hewlett-Packard v: M71 Ver. 01.12
  date: 11/05/2015

Processor:
CPU:
  Info: Dual Core model: Intel Core i7-5600U bits: 64 type: MT MCP
  L2 cache: 4 MiB
  Speed: 1843 MHz min/max: 500/3200 MHz Core speeds (MHz): 1: 1843 2: 1828
  3: 2018 4: 1812

Memory: 15.51 GiB

Network:
  Device-1: Intel Ethernet I218-LM driver: e1000e
  IF: enp0s25 state: down mac: b0:5a:da:b2:fe:82
  Device-2: Intel Wireless 7265 driver: iwlwifi
  IF: wlo1 state: up mac: 94:65:9c:b4:2a:35

Partitions: 

peter@g2i7d11:~$ df -Tl
df: /run/user/1000/doc: Operation not permitted
Filesystem Type 1K-blocks  Used Available Use% Mounted on
udev   devtmpfs   8109536 0   8109536   0% /dev
tmpfs  tmpfs  1626488  1556   1624932   1% /run
/dev/sda3  ext4  28660644   6472160  20707268  24% /
tmpfs  tmpfs  8132436 59488   8072948   1% /dev/shm
tmpfs  tmpfs 5120 4  5116   1% /run/lock
/dev/sda10 ext4 180377912 151667812  19477716  89% 
/media/Pictures.compile

/dev/sda4  ext4  81600856  61140388  16687828  79% /home
/dev/sda8  ext4 422805976 293374432 111474524  73% /media/backup
/dev/sdb9  ext4  20027260   9989732   8997144  53% 
/media/music.share

/dev/sda9  ext4 134014192  61981980  65589924  49% /media/backup.acc
/dev/sdb8  ext4 347473316 244465636  85793392  75% /media/syncspace
tmpfs  tmpfs  1626484   104   1626380   1% /run/user/1000
peter@g2i7d11:~$


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

peter@g2i7d11:~$ lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Broadwell-U Host Bridge 
-OPI [8086:1604] (rev 09)
    Subsystem: Hewlett-Packard Company Broadwell-U Host Bridge -OPI 
[103c:225a]

    Kernel driver in use: bdw_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 
5500 [8086:1616] (rev 09)

    DeviceName: 32
    Subsystem: Hewlett-Packard Company HD Graphics 5500 [103c:225a]
    Kernel driver in use: i915
    Kernel modules: i915
00:03.0 Audio device [0403]: Intel Corporation Broadwell-U Audio 
Controller [8086:160c] (rev 09)
    Subsystem: Hewlett-Packard Company Broadwell-U Audio Controller 
[103c:225a]

    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:14.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB 
xHCI Controller [8086:9cb1] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP USB xHCI 
Controller [103c:225a]

    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
00:16.0 Communication controller [0780]: Intel Corporation Wildcat 
Point-LP MEI Controller #1 [8086:9cba] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP MEI Controller 
[103c:225a]

    Kernel driver in use: mei_me
    Kernel modules: mei_me
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet 
Connection (3) I218-LM [8086:15a2] (rev 03)
    Subsystem: Hewlett-Packard Company Ethernet Connection (3) I218-LM 
[103c:225a]

    Kernel driver in use: e1000e
    Kernel modules: e1000e
00:1b.0 Audio device [0403]: Intel Corporation Wildcat Point-LP High 
Definition Audio Controller [8086:9ca0] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP High Definition 
Audio Controller [103c:225a]

    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI 
Express Root Port #1 [8086:9c90] (rev e3)

    Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI 
Express Root Port #2 [8086:9c92] (rev e3)

    Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI 
Express Root Port #4 [8086:9c96] (rev e3)

    Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB 
EHCI Controller [8086:9ca6] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP USB EHCI 
Controller [103c:225a]

    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci
00:1f.0 ISA bridge [0601]: Intel Corporation Wildcat Point-LP LPC 
Controller [8086:9cc3] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP LPC Controller 
[103c:225a]

    Kernel driver in use: lpc_ich
    Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation Wildcat Point-LP SATA 
Controller [AHCI Mode] [8086:9c83] (rev 03)
    Subsystem: Hewlett-Packard Company Wildcat Point-LP SATA Controller 
[AHCI Mode] [103c:225a]

    Kernel driver in use: ahci
    Kernel modules

Bug#991177: libdebian-installer: reproducible builds: Embeds build path in libdebian-installer-extra.so.*

2021-07-16 Thread Cyril Brulebois
Hello,

Vagrant Cascadian  (2021-07-16):
> The build path is embedded in various places in
> libdebian-installer-extra.so.*:
> 
>   
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libdebian-installer.html
> 
>   ./usr/lib/x86_64-linux-gnu/libdebian-installer-extra.so.4.0.8 
> 
>   /build/1st/libdebian-installer-0.121/build/src/../../src/list.c:30
>   vs.
>   /build/2/libdebian-installer-0.121/2nd/build/src/../../src/list.c:30
> 
> The attached patch fixes this by passing -ffile-prefix-map to CFLAGS in
> debian/rules.
> 
> Alternately, with recent versions of dpkg, using dpkg-buildflags to set
> CFLAGS should pass this option by default.
> 
> 
> Thanks for maintaining libdebian-installer!

I know we haven't always been stellar when it comes to merging repro
build work, sorry about that. Any chance you could chase^Wremind us
about such issues once Bullseye (r0, and maybe r1) is out the door?

Thanks already!


Cheers,
-- 
Cyril Brulebois (k...@debian.org)
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature