-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Kernel modules can be in three places:
The root filesystem image
The initrd "filesystem image"
The special kernel modules initrd
First of all, they're currently included in all 3 places, so that's definitely wasteful.
The initrd environment absolutely needs drivers for block, net, etc. If we needed an initrd that worked for multiple kernel versions, we would use the special kernel modules initrd to decouple them. Since we're building UKI's, it seems of little value.
We could perhaps drop the special kmod initrd, remove them from the root filesystem, and keep them only in the initrd. Before the transition from initrd to full system, we could copy the modules and firmware from initrd to /run and bind mount it onto /lib/modules/uname -r. It'll of course cost some memory (/run is a tmpfs), so weigh the options here!