From 9da9f8fa8fbdac1738274e1b2eb416427d121e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Primo=C5=BE=20Ajdi=C5=A1ek?= Date: Tue, 13 Jun 2023 17:22:51 +0200 Subject: [PATCH 1/2] ln -s /usr/bin/rpm-ostree /usr/bin/dnf --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 71616fe..1269ee9 100755 --- a/build.sh +++ b/build.sh @@ -13,6 +13,7 @@ if [[ "${NVIDIA_MAJOR_VERSION}" -ge 520 ]]; then else NVIDIA_PACKAGE_NAME="nvidia-${NVIDIA_MAJOR_VERSION}xx" fi +ln -s /usr/bin/rpm-ostree /usr/bin/dnf rpm-ostree install \ akmod-${NVIDIA_PACKAGE_NAME}*:${NVIDIA_MAJOR_VERSION}.*.fc${RELEASE} \ From 91492eba93a06c0179e7d3162661f7da294c8e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Primo=C5=BE=20Ajdi=C5=A1ek?= Date: Tue, 13 Jun 2023 20:50:51 +0200 Subject: [PATCH 2/2] moved ln -s /usr/bin/rpm-ostree /usr/bin/dnf to build.Containerfile --- build.Containerfile | 2 ++ build.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.Containerfile b/build.Containerfile index e737861..1c28c20 100644 --- a/build.Containerfile +++ b/build.Containerfile @@ -7,6 +7,8 @@ FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder ARG NVIDIA_MAJOR_VERSION="${NVIDIA_MAJOR_VERSION:-525}" ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}" +RUN ln -s /usr/bin/rpm-ostree /usr/bin/dnf + COPY build.sh /tmp/build.sh ADD certs /tmp/certs diff --git a/build.sh b/build.sh index 1269ee9..71616fe 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,6 @@ if [[ "${NVIDIA_MAJOR_VERSION}" -ge 520 ]]; then else NVIDIA_PACKAGE_NAME="nvidia-${NVIDIA_MAJOR_VERSION}xx" fi -ln -s /usr/bin/rpm-ostree /usr/bin/dnf rpm-ostree install \ akmod-${NVIDIA_PACKAGE_NAME}*:${NVIDIA_MAJOR_VERSION}.*.fc${RELEASE} \