Skip to content

Commit

Permalink
fix(nvidia): Enable persistenced service, add extra option to use /va…
Browse files Browse the repository at this point in the history
…r/tmp as the storage for temporary files. (#263)
  • Loading branch information
KyleGospo authored Jul 3, 2024
1 parent 782d90d commit 4fe7c33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvidia-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4fe7c33

Please sign in to comment.