Skip to content

Commit

Permalink
Fix nvidia driver install on Gentoo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebanc committed Dec 29, 2024
1 parent f4e3a09 commit 4f06e89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linuxloops
Original file line number Diff line number Diff line change
Expand Up @@ -15681,6 +15681,7 @@ elif [ "${distribution}" == "Gentoo" ]; then
cat >"${bootstrapdir}"/tmp/linuxloops/install_nvidia <<INSTALLNVIDIA
#!/bin/bash
set -e
echo -e 'media-libs/nvidia-vaapi-driver ~amd64' > /etc/portage/package.accept_keywords/linuxloops
emerge -uN x11-drivers/nvidia-drivers media-libs/nvidia-vaapi-driver
INSTALLNVIDIA
elif [ "${distribution}" == "GLF-OS" ]; then
Expand Down Expand Up @@ -19601,7 +19602,7 @@ if [ "${declarative}" == "Yes" ]; then
cat >"${linuxloopsdir}"/custom_commands <<CUSTOM_COMMANDS
#!/bin/bash
set -e
# Adds temporarily setuid bit to bubblewrap to be able to install flatpaks as namespaces cannot be created in chroot
# Add temporarily setuid bit to bubblewrap to be able to install flatpaks (as namespaces cannot be created in chroot)
if [ -x /usr/bin/bwrap ] && [ ! -u /usr/bin/bwrap ]; then bwrap_needs_setuid=1; chmod u+s /usr/bin/bwrap; fi
${custom_commands}
if [ ! -z "\${bwrap_needs_setuid}" ]; then chmod u-s /usr/bin/bwrap; fi
Expand Down

0 comments on commit 4f06e89

Please sign in to comment.