From 256bf7a1d6a6773b6a6d44469ab56035437a58c2 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Mon, 20 May 2019 21:57:59 -0500 Subject: [PATCH] Update 50-gid-video Never use root --- root/etc/cont-init.d/50-gid-video | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/50-gid-video b/root/etc/cont-init.d/50-gid-video index 610bd23..3bc9949 100755 --- a/root/etc/cont-init.d/50-gid-video +++ b/root/etc/cont-init.d/50-gid-video @@ -2,7 +2,7 @@ # Check for the existence of the Intel video device if [ -e /dev/dri ]; then - VIDEO_GID=$(stat -c '%g' /dev/dri/* | head -n 1) + VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v 0 | head -n 1) else exit 0 fi