1
0
Fork 0

Make akmods use correct kernel version

Without speficying the version akmods builds for the current kernel
(host kernel).
This commit is contained in:
ver4a 2024-11-09 17:15:53 +01:00
parent bd99c93e02
commit e85e38aef5

View file

@ -22,7 +22,7 @@ RUN rpm-ostree override remove bash-color-prompt
# Install nvidia drivers
RUN rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda && \
akmods --force
akmods --force --kernels $(rpm -qa kernel | sed 's/kernel-//g')
# Remove rpm metadata cache
RUN rpm-ostree cleanup --repomd