Skip to content

Save space by excluding kernel modules #32

@sorenisanerd

Description

@sorenisanerd

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions