• Limiting graphics drivers in initramfs

    From Ben Hutchings@21:1/5 to All on Tue Oct 15 01:00:01 2024
    Hi all,

    The growing size of the firmware for Nvidia and AMD GPUs has been
    causing some problems for users with plymouth and that firmware
    installed, since that increases the size of every initramfs image and
    can lead to a full /boot partition. (On a test VM running unstable,
    the size increases from 53 MiB with neither firmware package installed,
    to 66 MiB with firmware-amd-graphics or 93 MiB with firmware-nvidia-
    graphics.)

    We currently don't do a good job of managing the space in /boot. apt autoremoves older kernels but this policy is solely based on numbers of kernels, not taking into account the size of the kernel or initramfs
    images. I would like to move to a state where kernel and initramfs
    images aren't directly installed to /boot and we have a separate
    program to manage that space. But it is too late in the trixie release
    cycle to carry out such a transition.

    So, as a partial mitigation, I wonder whether it would be possible for
    plymouth to stop installing these graphics drivers on amd64?

    - On PCs booting with EFI, the built-in efifb driver should work and
    is normally configured to match the monitor's native resolution. But
    currently plymouth seems to refuse to use it. Is this a intentional
    policy or a bug?

    - On PCs booting through BIOS, vesafb may work, depending on the
    GRUB configuration. Setting GRUB_GFXPAYLOAD_LINUX=auto in
    /etc/default/grub seems to make it work, although not at native
    resolution. So this might not be a good experience, and it is
    dependent on the boot loader.

    If we could at least get amd64 EFI systems running plymouth on efifb
    instead of amdgpu or nouveau that would probably address a large
    majority of the systems with this issue.

    Ben.

    --
    Ben Hutchings
    Man invented language to satisfy his deep need to complain.
    - Lily Tomlin


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmcNoGsACgkQ57/I7JWG EQmDkxAAtH2R+PXqoJ4izws3F1HC7qfQB88bqzr0QLMBcdZNdq96EWmQyqKlYn6X vcRMIQTnRsdwaicSJZmVgsdjMjJp/OPHfkYORsP/j4x/sW+vlzpRzp4qQPc2/Y/M SgzbHLtMozfrQkcVH1MSVglP6EfSv9EiiQP9DdCc4uhGAdd243A86Sb8I2g76kOh 9x5YpUjht4qV0TxJ/Hnh3aihl7IRppAnzieIbnV79eV8w40xyvoNJJ7DKpOUJb2p //UF18272iqg0jH9bwQsqfrSvXyZ0glcHnetJrbrUPHFmATkZUOsUogrlaCRMuWG BMkyGcI7jG8cQPZpm7cWI1qPL/vYmwPGcpC9O9ckmP4ccCUzqDQ0bHjkZjbkVZiR nTTU3dHimqqD8ofgOzTVsqESDr6M3NK7pn5oKzrJwse8/nd6RyH9m1/9yAIFEg/G DXFl1ALFDF0MHrf7Afj4XurFSp6u4KnoqsiYHs6ZHSOmD3a/HZpRn+/3Gni9MJ3t A3c/FbsexXrJC2b0x3AN2HdM4qY4EIzbuXlG/2hXl3zS3mRr0rJyIHO7Gt8wcyxK koc7FzZABdRjDZSGiMCJgh/O9+07yk3tWp6S1/85viaXqz8vFL16nmsIAo80GURW 9lGbnRhDA5CEpb028cO+KIxrErcDfyEAbEp+wxaBLUxz3m70dfQ=
    =jOdE
    -----END PGP SIGNATURE-----

    --- SoupGate-Wi