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

Bug#1051403: firmware-misc-nonfree: /lib/firmware/cxgb4/configs/ do not get into initramfs




Package: firmware-misc-nonfree
Version: 20230210-5~bpo11+1
Severity: normal

Hello.

firmware-misc-nonfree provides firmware for Chelsio T6 NIC.  This
package also provides configuration files for the firmware.
Unfortunately the config files are ignored in practice, because the
driver is loaded from initramfs, and firmware is loaded at the same
stage.  Initramfs image does not contain configuration files.

I've fixed the issue on my machine with a following script:
cat /etc/initramfs-tools/hooks/ct6-config
#!/bin/sh -e

if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions

cp -r /lib/firmware/cxgb4/configs/ $DESTDIR/lib/firmware/cxgb4/
cp -a /lib/firmware/cxgb4/*config.txt $DESTDIR/lib/firmware/cxgb4/

May be such a script can be included into firmware-misc-nonfree package.

Thank you very much for your work!


-- System Information:
Debian Release: 11.7
  APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-debug'), (500, 'oldstable'), (200, 'oldstable-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-0.deb11.7-amd64 (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

firmware-misc-nonfree depends on no packages.

firmware-misc-nonfree recommends no packages.

Versions of packages firmware-misc-nonfree suggests:
ii  initramfs-tools  0.140

-- debconf-show failed

--
Alexandra N. Kossovsky
OKTET Labs (http://www.oktetlabs.ru/)


Reply to: