bottlerocket-os / bottlerocket

An operating system designed for hosting containers
https://bottlerocket.dev
Other
8.65k stars 511 forks source link

kernel: Chart out future for kmod-kit #3199

Open foersleo opened 1 year ago

foersleo commented 1 year ago

kmod-kit currently does not support cross compiling external kmods for other architectures, like we do for our general package builds. If we do not want to build kmods on the target instance, but check building for all target architectures (x86_64 and aarch64 currently supported for aws variants) we need two separate builder hosts. Check our options for kmod-kit supporting cross compilation of modules.

Another possible answer might be, that kmod-kit might not be the best way to add custom kernel modules once we have support for out-of-tree builds. Once that feature lands, it might be easier to create an out-of-tree variant with the necessary modules instead of going through fetching kmod-kit, building modules and distributing it.

The idea for this came up during discussions around the 6.1 kernel enablement: https://github.com/bottlerocket-os/bottlerocket/pull/3121

webern commented 1 year ago

Has some implications for #2669 and relates to this comment https://github.com/bottlerocket-os/twoliter/pull/3#discussion_r1205853317