Control: retitle -1 initramfs-tools: duplicates nvidia firmware files

On Fri, Jul 19, 2024 at 04:43:47PM +0200, Diederik de Haas wrote:
> > In any case, the upgrade should work for any user, including when
> > all these packages are needed.
> 
> The real problem seems to be the size of /boot/ ...

Not really. A large part of the problem is that initramfs explodes
the size of the nvidia firmware.

On the root file system, in /usr/lib/firmware, the nvidia firmware
files are 66MB (uncompressed!).
However, the initrd.img grows from 64M to 250M (compressed!) when
firmware-nvidia-graphics is installed. There is something seriously
wrong here.

One of the things I've noticed:

/usr/lib/firmware/nvidia/tu104/gsp is supposed to be a symlink to
/usr/lib/firmware/nvidia/tu102/gsp. However, in initrd.img, this is
a copy of the directory; accounting for 25M on its own.

No wonder the initrd is way too large.

There are probably more cases where the symlinks are not preserved.
This needs to be fixed in initramfs (or whatever hook script copies
the firmware files).

Chris

Reply via email to