disable GPU in RPM distros on cpu only

This commit is contained in:
thelamer 2025-07-04 11:14:57 -04:00
parent 16ae035a9f
commit bdc765f931
No known key found for this signature in database

View File

@ -7,9 +7,16 @@ if ! pgrep chromium > /dev/null;then
rm -f $HOME/.config/chromium/Singleton* rm -f $HOME/.config/chromium/Singleton*
fi fi
# Run normally on privved containers or modified un non priv # Disable GPU without Nvidia
if grep -q 'Seccomp:.0' /proc/1/status; then if which nvidia-smi; then
${BIN} --password-store=basic "$@" DISABLE_GPU=""
else else
${BIN} --password-store=basic --no-sandbox --test-type "$@" DISABLE_GPU="--disable-gpu"
fi
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp:.0' /proc/1/status; then
${BIN} --password-store=basic ${DISABLE_GPU} "$@"
else
${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@"
fi fi