mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 14:22:24 +00:00
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:
committed by
Fabiano Fidêncio
parent
a786582d0b
commit
d9d1073cf1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user