Skip to content

Commit

Permalink
Merge pull request #559 from enriquebelarte/temp-fix-libdnf
Browse files Browse the repository at this point in the history
Temporary fix for bootc CI builds
  • Loading branch information
cooktheryan authored Jun 13, 2024
2 parents 5e902fa + 3e3fbda commit 948f303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ USER root

COPY --from=builder /home/builder/yum-packaging-precompiled-kmod/RPMS/*/*.rpm /rpms/
COPY --from=builder --chmod=444 /home/builder/yum-packaging-precompiled-kmod/tmp/firmware/*.bin /lib/firmware/nvidia/${DRIVER_VERSION}/

# Temporary workaround until the permanent fix for libdnf is merged
RUN mv /etc/selinux /etc/selinux.tmp
RUN dnf install -y /rpms/kmod-nvidia-*.rpm

COPY nvidia-toolkit-firstboot.service /usr/lib/systemd/system/nvidia-toolkit-firstboot.service
Expand Down Expand Up @@ -133,6 +134,7 @@ RUN if [ "${TARGET_ARCH}" == "" ]; then \
dnf install -y nvidia-fabric-manager-${DRIVER_VERSION} libnvidia-nscq-${DRIVER_BRANCH}-${DRIVER_VERSION} ; \
fi \
&& dnf clean all \
&& mv /etc/selinux.tmp /etc/selinux \
&& ln -s /usr/lib/systemd/system/nvidia-toolkit-firstboot.service /usr/lib/systemd/system/basic.target.wants/nvidia-toolkit-firstboot.service \
&& echo "blacklist nouveau" > /etc/modprobe.d/blacklist_nouveau.conf

Expand Down

0 comments on commit 948f303

Please sign in to comment.