gpu: Install packages for devkit

Introduce a new function to install additional packages into the
devkit flavor. With modprobe, we avoid errors on pod startup
related to loading nvidia kernel modules in the NVRC phase.
Note, the production flavor gets modprobe from busybox, see its
configuration file containing CONFIG_MODPROBE=y.

Signed-off-by: Manuel Huber <manuelh@nvidia.com>
This commit is contained in:
Manuel Huber
2026-02-04 17:45:30 -08:00
committed by Fabiano Fidêncio
parent a786582d0b
commit d9d1073cf1

View File

@@ -147,6 +147,18 @@ install_nvidia_dcgm() {
datacenter-gpu-manager-exporter
}
install_devkit_packages() {
is_feature_enabled "devkit" || {
echo "chroot: Skipping devkit packages installation"
return
}
echo "chroot: Install devkit packages"
eval "${APT_INSTALL}" kmod
apt-mark hold kmod
}
cleanup_rootfs() {
echo "chroot: Cleanup NVIDIA GPU rootfs"
@@ -174,4 +186,5 @@ install_userspace_components
install_nvidia_fabricmanager
install_nvidia_ctk
install_nvidia_dcgm
install_devkit_packages
cleanup_rootfs