Attempt to fix nvidia akmod build
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
FROM ghcr.io/benradey/workstation-nvidia-base:latest
|
||||
|
||||
# Build nvidia akmod with flag that produces proprietary kernal driver for older hardware
|
||||
RUN sudo sh -c 'echo "%_without_kmod_nvidia_detect 1" > /etc/rpm/macros.nvidia-kmod'
|
||||
RUN /usr/sbin/akmods --force --kernels "$(rpm -qa kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
|
||||
RUN sudo sh -c 'echo "%_without_kmod_nvidia_detect 1" > /etc/rpm/macros.nvidia-kmod' && \
|
||||
mkdir -p /var/log/akmods /var/cache/akmods/nvidia /var/tmp && \
|
||||
chmod 777 /var/tmp && \
|
||||
/usr/sbin/akmods --force --kernels "$(rpm -qa kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
|
||||
|
||||
# The first check makes sure that we have exactly 4 gpg pubkeys trusted in the rpmdb (the ones from the base image).
|
||||
# Any more than that means that dnf automatically added a new one, which is shady!
|
||||
|
||||
Reference in New Issue
Block a user