Discussion:
Bug#1059858: debian-cd: Missing firmware packages due to usr-move
(too old to reply)
Emanuele Rocca
2024-01-02 14:10:01 UTC
Permalink
Package: debian-cd
Version: 3.2.1
Severity: important

Dear Maintainer,

quite a few firmware packages are missing from today's debian-installer
ISOs. Among the missing ones: firmware-atheros, firmware-realtek, and
many others. Some firmware packages such as firmware-ath9k-htc and
firmware-linux-free are instead present.

Packages correctly included in the ISOs ship firmware files under /lib,
while those not included use /usr/lib. For example the following is
included:

firmware-linux-free: /lib/firmware/av7110/bootcode.bin

While missing packages install firmware files under /usr/lib:

firmware-atheros: /usr/lib/firmware/wil6210.brd

It seems likely that tools/generate_firmware_task needs to be patched to
take usr-move into account.

Thanks,
Emanuele
Helmut Grohne
2024-01-02 17:30:01 UTC
Permalink
Hi Emanuele,
Post by Emanuele Rocca
quite a few firmware packages are missing from today's debian-installer
ISOs. Among the missing ones: firmware-atheros, firmware-realtek, and
many others. Some firmware packages such as firmware-ath9k-htc and
firmware-linux-free are instead present.
Packages correctly included in the ISOs ship firmware files under /lib,
while those not included use /usr/lib. For example the following is
firmware-linux-free: /lib/firmware/av7110/bootcode.bin
firmware-atheros: /usr/lib/firmware/wil6210.brd
It seems likely that tools/generate_firmware_task needs to be patched to
take usr-move into account.
Yes, this very much looks like /usr-merge breakage and I fully agree
with the pointers you give. Just reading generate_firmware_task, the
contains_firmware sub immediately jumps into my eyes as the grep will
miss moved firmware packages. It should probably become

grep ' \\./\\(usr/\\)\\?lib/firmware/'

(with the double escaping for the target context already applied).

I happen to not know how to test this though. Quite possibly, this is
not the only issue. Are you able to drive this forward from here?

Helmut
Steve McIntyre
2024-01-02 17:40:01 UTC
Permalink
control: tag -1 pending
Post by Helmut Grohne
Hi Emanuele,
Post by Emanuele Rocca
quite a few firmware packages are missing from today's debian-installer
ISOs. Among the missing ones: firmware-atheros, firmware-realtek, and
many others. Some firmware packages such as firmware-ath9k-htc and
firmware-linux-free are instead present.
Packages correctly included in the ISOs ship firmware files under /lib,
while those not included use /usr/lib. For example the following is
firmware-linux-free: /lib/firmware/av7110/bootcode.bin
firmware-atheros: /usr/lib/firmware/wil6210.brd
It seems likely that tools/generate_firmware_task needs to be patched to
take usr-move into account.
Yes, this very much looks like /usr-merge breakage and I fully agree
with the pointers you give. Just reading generate_firmware_task, the
contains_firmware sub immediately jumps into my eyes as the grep will
miss moved firmware packages. It should probably become
grep ' \\./\\(usr/\\)\\?lib/firmware/'
(with the double escaping for the target context already applied).
I happen to not know how to test this though. Quite possibly, this is
not the only issue. Are you able to drive this forward from here?
Already fixed in git, along with another usr-merge issue I found. The
next regular build should be fine.

Hmm, why didn't this get tagged as "pending" already when I pushed??
--
Steve McIntyre, Cambridge, UK. ***@einval.com
Google-bait: https://www.debian.org/CD/free-linux-cd
Debian does NOT ship free CDs. Please do NOT contact the mailing
lists asking us to send them to you.
Emanuele Rocca
2024-01-03 10:10:01 UTC
Permalink
Hi Steve and Helmut,
Post by Steve McIntyre
Already fixed in git, along with another usr-merge issue I found. The
next regular build should be fine.
It is. Thank you!

$ curl -s https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/arm64/list-cd/debian-testing-arm64-netinst.list.gz | zgrep firmware-atheros
firmware-atheros_20230625-2_all.deb

Debian Bug Tracking System
2024-01-02 17:40:01 UTC
Permalink
tag -1 pending
Bug #1059858 [debian-cd] debian-cd: Missing firmware packages due to usr-move
Added tag(s) pending.
--
1059858: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059858
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...