From 784ca0de5932c47c55e90bfb3df1aef948df9b47 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Fri, 5 Dec 2025 21:43:37 +0100 Subject: [PATCH] FIX: nvidia driver --- Containerfile | 6 ++++++ build_files/initramfs.sh | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 build_files/initramfs.sh diff --git a/Containerfile b/Containerfile index 4b6f5ea..72945d3 100644 --- a/Containerfile +++ b/Containerfile @@ -17,4 +17,10 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ --mount=type=tmpfs,dst=/tmp \ /ctx/build.sh +RUN --mount=type=bind,from=ctx,source=/,target=/ctx \ + --mount=type=cache,dst=/var/cache \ + --mount=type=cache,dst=/var/log \ + --mount=type=tmpfs,dst=/tmp \ + /ctx/initramfs.sh + RUN bootc container lint diff --git a/build_files/initramfs.sh b/build_files/initramfs.sh new file mode 100755 index 0000000..1c2c424 --- /dev/null +++ b/build_files/initramfs.sh @@ -0,0 +1,14 @@ +#!/usr/bin/bash +# https://github.com/ublue-os/bluefin/blob/ba5d621270982b245343abcae47b3393cc5cffb8/build_files/base/19-initramfs.sh + +echo "::group:: ===$(basename "$0")===" + +set -oue pipefail + +KERNEL_SUFFIX="" +QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(|'"$KERNEL_SUFFIX"'-)(\d+\.\d+\.\d+)' | sed -E 's/kernel-(|'"$KERNEL_SUFFIX"'-)//')" +export DRACUT_NO_XATTR=1 +/usr/bin/dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible -v --add ostree -f "/lib/modules/$QUALIFIED_KERNEL/initramfs.img" +chmod 0600 "/lib/modules/$QUALIFIED_KERNEL/initramfs.img" + +echo "::endgroup::" \ No newline at end of file