Control: reassign -1 src:initramfs-tools On Mon, 2022-05-30 at 23:04 +0200, Adrien CLERC wrote: > Package: firmware-amd-graphics > Version: 20210818-1 > Severity: minor > > Dear Maintainer, > > Since the integration of built-in drivers in initramfs-tools (see > https://salsa.debian.org/kernel-team/initramfs-tools/-/merge_requests/35), > firmware files are also included with the corresponding kernel module. > I don't know why, but it only hits my system (AMD Ryzen PRO 4750G) since > May, > 7th with Linux 5.17.0. Before that, amdgpu was NOT included in the initrd. > > Now that it's included, it brings all firmwares for all AMD graphics card, > making the initrd from 11MB to 38MB. [...]
This really is unfortunate, but the way you've tried to fix wouldn't
work in general:
- Not all drivers log in the same way (at least in the upstream kernel)
- Those messages may have been expired from the kernel message buffer
when mkinitramfs runs
- The firmware files requested by a driver can change between kernel
versions
To solve this we would need kernel drivers to specify a mapping between
device IDs and firmware files.
One thing we could perhaps do in initramfs-tools is to add a
configuration variable that lets you override which firmware files get
included (like MODULES=list, but for firmware). Would that work for
you?
Ben.
--
Ben Hutchings
Horngren's Observation:
Among economists, the real world is often a special case.
signature.asc
Description: This is a digitally signed message part

