mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-01 03:41:11 +02:00
There are two ways to build the nvidia-driver - either against a full kernel source tree in /usr/src/linux, or against a slim kernel-devel equivalent in /lib/modules/*/build. The /lib/modules/*/build is provided by sys-kernel/coreos-module, see `install_build_source`. The interesting thing is that in absence of --kernel-source-path, nvidia-installer will autodetect which to use and already builds against /lib/modules/*/build on Flatcar right now. By passing --kernel-name, we make that choice explicit and this allows us to skip the emerge steps of the build. Since this runs in the developer container, there is also no point in trying to execute systemctl or depmod, so pass the flags to disable usage of those. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>