diff --git a/nvidia-install.sh b/nvidia-install.sh index dac92b7..3dff963 100755 --- a/nvidia-install.sh +++ b/nvidia-install.sh @@ -51,10 +51,13 @@ rpm-ostree install \ # disables nvidia repos provided by ublue-os-nvidia-addons sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/{eyecantcu-supergfxctl,negativo17-fedora-nvidia,nvidia-container-toolkit}.repo +systemctl enable nvidia-persistenced.service + systemctl enable ublue-nvctk-cdi.service semodule --verbose --install /usr/share/selinux/packages/nvidia-container.pp # Universal Blue specific Initramfs fixes +echo "options nvidia NVreg_TemporaryFilePath=/var/tmp" >> /usr/lib/modprobe.d/nvidia-atomic.conf cp /etc/modprobe.d/nvidia-modeset.conf /usr/lib/modprobe.d/nvidia-modeset.conf sed -i 's@omit_drivers@force_drivers@g' /usr/lib/dracut/dracut.conf.d/99-nvidia.conf