Skip to content

Commit

Permalink
Temporary fix for bootc CI builds
Browse files Browse the repository at this point in the history
Konflux CI fails when building using bootc images as base throwing this error:
`Error: Cannot create repo temporary directory "/var/cache/dnf/baseos-044cae74d71fe9ea/libdnf.1jsyRp": Permission denied`
This temporary workaround is needed for build pipeline to work on Konflux CI until libdnf fix is merged to RHEL.

References:
https://issues.redhat.com/browse/RHEL-39796
rpm-software-management/libdnf#1665

This should be removed once the permanent fix is merged.

Signed-off-by: Enrique Belarte Luque <[email protected]>
  • Loading branch information
enriquebelarte committed Jun 13, 2024
1 parent 295a57c commit 3e3fbda
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 3e3fbda

Please sign in to comment.