distr1 / distri

a Linux distribution to research fast package management
https://distr1.org
Other
536 stars 26 forks source link

[Question] How will dkms be handled? #47

Closed yshui closed 4 years ago

yshui commented 4 years ago

Looks like /lib/modules is read-only, does that completely rule out things like dkms?

stapelberg commented 4 years ago

The concept of DKMS as a system to compile kernel-modules at installation time does not fit well into the distri philosophy.

Having out-of-tree kernel modules be built into packages does work, however (just not at installation time, i.e. in a third-party repo, or manually by the user). That package, once installed, will then provide paths within /lib/modules, just like other exchange directories do.

yshui commented 4 years ago

That does work. But I wonder how well would it scale once distri starts to include different versions of linux kernels (lts, different stable versions, etc.). Since then each out-of-tree module will have to be packaged for each of the different kernels.

Also this could make building custom kernels slightly harder.

stapelberg commented 4 years ago

Since then each out-of-tree module will have to be packaged for each of the different kernels.

We are already in a similar situation with regards to rebuilding reverse dependencies after changing a package: we need to bump all packages affected by a change and rebuild them.

In general, distri favors a radically simple distribution model, and that requires tooling to make the approach viable in other places. For example, for the bumping I just mentioned, we have the distri bump command which does that automatically.

yshui commented 4 years ago

What kind of tooling do you think is needed to make creating kernel module packages easier? Or do you think it would be easy enough so it's not worth it?

stapelberg commented 4 years ago

Right now, I don’t think special tooling is needed.

yshui commented 4 years ago

OK. Thanks for your answers