From 4f03e132beddc8fcec0a682c3e3724e1f8f9f7d1 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Thu, 20 Nov 2025 14:40:38 +0100 Subject: [PATCH] FIX: nvidia driver --- README.md | 4 ++++ build_files/build.sh | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a8f1c7b..ba9b7b0 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ You should adapt user & disk settings in `disk_config/user.toml` before you buil It may be necessary to create your own keys: https://github.com/CheariX/silverblue-akmods-keys +The kernel arguments need to be added manually: `rpm-ostree kargs --append=rd.driver.blacklist=nouveau,nova_core --append=modprobe.blacklist=nouveau,nova_core --append=nvidia-drm.modeset=1` + ## Links - [getting started](https://docs.fedoraproject.org/en-US/bootc/building-containers) @@ -29,6 +31,8 @@ It may be necessary to create your own keys: https://github.com/CheariX/silverbl - [osbuild blueprint reference](https://osbuild.org/docs/user-guide/blueprint-reference) - [filesystem guide](https://bootc-dev.github.io/bootc/filesystem.html) +It is possible to keep a revision by pinning it: `ostree admin pin 0` + ## Installed Software - man diff --git a/build_files/build.sh b/build_files/build.sh index 14ce115..515906c 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -22,11 +22,10 @@ rm /etc/yum.repos.d/vscode.repo # https://rpmfusion.org/Howto/NVIDIA # https://www.tecmint.com/install-nvidia-drivers-in-linux -dnf5 install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ - https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -dnf5 install -y kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig \ - akmod-nvidia xorg-x11-drv-nvidia-cuda \ - libva-utils vdpauinfo +dnf5 install -y rpmdevtools akmods +dnf5 install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ + https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +dnf5 install -y akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda dnf5 remove -y rpmfusion-free-release rpmfusion-nonfree-release dnf5 clean all