On Fri, 19 Jul 2024 18:11:18 +0200 Diederik de Haas <didi.deb...@cknow.org> 
wrote:
Control: affects -1 firmware-nvidia-graphics

On Friday, 19 July 2024 17:56:30 CEST Chris Hofstaedtler wrote:
> 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.

It's nice that we can *postpone* that problem a while longer.

> 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.

Nice find! Adding firmware-nvidia-graphics as affects (which hopefully
will warn users of that package of this problem)

Hi all,

I can confirm the problem. The firmware under /usr/lib/firmware/nvdia
have some links between the directories. However the function "add_firmware"
handles only the links between the files. This leads to duplicate files
in the initramfs which are unique in /usr/lib/firmware in reality.

In my case I solved removing the nvidia drivers because I don't use it. But
in general, being the nvidia driver huge, this creates problem in small (!)
EFI partition.

BR
G.Baroncelli
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

Reply via email to