[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1116709: marked as done (hw-detect: list_deb_firmware() does not find files in trixie packages after /usr merge)



Your message dated Thu, 2 Oct 2025 14:07:45 +0200
with message-id <7d27b9f2-0656-4684-a510-1af4ceeeeb38@rclobus.nl>
and subject line Re: Bug#1116709: hw-detect: list_deb_firmware() does not find files in trixie packages after /usr merge
has caused the Debian Bug report #1116709,
regarding hw-detect: list_deb_firmware() does not find files in trixie packages after /usr merge
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1116709: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1116709
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: hw-detect
Version: 1.159
Severity: normal
Tags: d-i patch
X-Debbugs-Cc: alex@barak.in

after implementation of https://wiki.debian.org/UsrMerge
firmware packages in trixie contain /usr/lib/firmware
in the paths (instead of /lib/firmware in bookworm).

compare:
https://packages.debian.org/bookworm-backports/all/firmware-iwlwifi/filelist
/lib/firmware/intel/ibt-0040-0041.ddc
...

and:
https://packages.debian.org/trixie/all/firmware-iwlwifi/filelist
/usr/lib/firmware/intel/ibt-0040-0041.ddc
...

therefore, the list_deb_firmware() function from check-missing-firmware.sh
does not find files in new packages.

the simplest solution is to ignore the "/usr" in the file paths
(the patch is attached).
diff --git a/check-missing-firmware.sh b/check-missing-firmware.sh
index 59bf4782..a862158e 100755
--- a/check-missing-firmware.sh
+++ b/check-missing-firmware.sh
@@ -263,8 +263,8 @@ ask_load_firmware () {
 
 list_deb_firmware () {
 	udpkg -c "$1" \
-		| grep '^\./lib/firmware/' \
-		| sed -e 's!^\./lib/firmware/!!' \
+		| grep '^\.\(/usr\)\?/lib/firmware/' \
+		| sed -e 's!^\.\(/usr\)\?/lib/firmware/!!' \
 		| grep -v '^$'
 }
 

--- End Message ---
--- Begin Message ---
Hello Andrew,

On 30/09/2025 23:55, Andrew Kornilov wrote:
    @Andrew: Which version of live-build are you using? (lb --version)

We still use the version 20240810. We upgraded it from the bookworm version and it has been working fine till latest Trixie's changes (we build a custom ISO based on the mostly Bookworm packages + Trixie's kernel + debian-installer + some more not important updates).

The live-build package is tested with sid, testing, stable and oldstable, so you should be fine to use bookworm with trixie mixed in.

You can even use the git version.

I've checked the code and see it contains the "Firmware_List_From_Contents" function but a simpler version.

It was fixed in git some time ago. The version from trixie is sufficiently new.

We will upgrade it after some tests. Right now we applied the attached patch and it works (but slow, of course).

Thank you all, guys. Now i see that we should use the latest live-build version (however, it might not work with bookworm packages, not sure right now).

Ok, I'm closing this bug report. If you have issues with the current live-build, please file a bug report against that package.

With kind regards,
Roland Clobus

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply to: