On Fri, Oct 16, 2026 at 08:37:44AM +0100, James Le Cuirot wrote:
> On Fri, 2026-10-16 at 08:13 +0100, Immolo wrote:
> > (Don't top reply mailing list emails please :) )
>
> Says the guy in a HTML email. ;) But yeah, neither please!
>
> > On Fri, 16 Oct 2026, 04:44 Emi, <e…@genchu.org> wrote:
> > > It wouldn’t be quite that simple, given gentoo would also need to sign
> > > external modules such as nvidia drivers, or filesystem drivers, so there
> > > would be a need for a signed -bin of those packages
> >
> > I'd prefer Nowa to confirm this as signing isn't my area of expertise,
> > however this is what the module-sign USEflag[1] is designed to do, no?
>
> It does, but they would need to be signed with a key that's baked into
> gentoo-kernel-bin. The private key would obviously need to stay private. It's
> a good point. I forgot about this aspect because I'm almost always a
> Radeon + XFS user.
>
> It's particularly annoying for NVIDIA drivers, as sometimes older versions are
> needed for older cards, but given that we're talking about major games,
> perhaps only supporting the latest would be reasonable.
>
> It would probably also require some coordination. New module builds would be
> needed at the same time as new kernel builds. Who would be responsible for
> building those? What if one doesn't support the new kernel? What if one fails
> to build? You wouldn't want this holding up the kernel.
fwiw NVIDIA been doing fixes for new kernels during -rc phases for like
6+ years now, so they're rarely broken even for x.x.0 kernels unless a
last minute change broke something. We also do not do dist-kernels for
.0 kernels either way (previous branch is still supported for a bit) so
that gives extra time until .2 or .3.
Being broken during a patch release has happened only once in the time
I've been maintaining it, annoying but it's very rare.
In theory whomever is building shouldn't run into issues often even
if using non-LTS kernels.
A lot of issues tend to be related to custom/minimalist kernels too,
this doesn't apply to generic dist-kernels.
For legacy drivers, there's the option of offering them only for stable
(LTS) kernels given they can lag behind fixes. I wouldn't bother with
the masked ones like 390 and 470 though. Many 580.x users can run major
games just fine still (think GTX 1080 and similar, just avoid 4K and
modern games run just fine).
Licensing-wise for redistribution, the open variant is MIT+GPL-2 but
the libraries that come with the modules are technically non-free.
*Used* to have RESTRICT=bindist but there's a linux exception for
redistribution that should (IANAL) make this ok. It could make sense
to split the modules in their own ebuild though, so we don't have a
>=500MB (1.5GB uncompressed) nvidia package for every kernel build
with a iffy license (could look at this sometime if we go forward
with this). The legacy drivers need the closed variant with that
non-free license though (they support open too, but open doesn't
support old cards making it pointless).
Even without the libraries, note the modules are still kinda big
and will add up for storage (not that it's much compared to the
gentoo-kernel-bin initramfs):
12K /lib/modules/7.2.9/video/nvidia-drm.ko
108M /lib/modules/7.2.9/video/nvidia.ko
2.0M /lib/modules/7.2.9/video/nvidia-modeset.ko
2.1M /lib/modules/7.2.9/video/nvidia-uvm.ko
8.0K /lib/modules/7.2.9/video/nvidia-peermem.ko
112M total
(but that sould compress a decent amount)
There can be other non-nvidia modules that need thinking about
though, e.g. network drivers, gamepad drivers like xpadneo, or
even virtualbox that users may not be happy without. Some of
these can have slower releases and break more often for non-LTS
kernels albeit maintainers been trying to patch them as-needed
for important ones.
--
ionen