fedora_atomic_custom_image/scripts/nvidia/install.sh

17 lines
711 B
Bash
Raw Normal View History

2024-10-16 20:34:48 +02:00
#!/bin/bash
# RELEASE var is defined in build.sh script
set -ouex pipefail
# Enabling custom repository
2024-10-16 20:34:48 +02:00
rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$RELEASE.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$RELEASE.noarch.rpm
rpm-ostree install /tmp/rpms/ublue-os/ublue-os-nvidia*.rpm
rpm-ostree install /tmp/rpms/kmods/kmod-nvidia*.rpm
rpm-ostree install xorg-x11-drv-nvidia-cuda libva-nvidia-driver \
2024-10-18 22:06:07 +02:00
nvidia-vaapi-driver libva-utils vdpauinfo nvidia-modprobe \
nvidia-container-toolkit
2024-10-16 20:34:48 +02:00
2024-10-18 22:06:07 +02:00
cp /tmp/scripts/nvidia/modprobe.d/*.conf /usr/lib/modprobe.d/
cp /tmp/scripts/nvidia/modprobe.d/nvidia-modeset.conf /etc/modprobe.d/