summaryrefslogtreecommitdiffstats
path: root/share/hooks/post-start.chown-nvidia.sh
blob: 457b6e516a66fc0f31b888a671ce5101b6f8d05c (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

set -e

if grep -qs nvidia /var/lib/machines/"${NAME}"/etc/group
then
	chroot "/var/lib/machines/${NAME}" chown root:nvidia "/dev/nvidia*"
fi