feat: Check RENDERNODE permissions (#1279)

This commit is contained in:
Kroese
2026-07-17 02:11:38 +02:00
committed by GitHub
parent ace8614a50
commit e81c509208
3 changed files with 8 additions and 3 deletions
+4
View File
@@ -48,6 +48,10 @@ if [ ! -c "$RENDERNODE" ]; then
fi
fi
if [ ! -c "$RENDERNODE" ] || [ ! -r "$RENDERNODE" ] || [ ! -w "$RENDERNODE" ]; then
warn "render device '$RENDERNODE' is unavailable or inaccessible."
fi
addPackage "xserver-xorg-video-intel" "Intel GPU drivers"
addPackage "qemu-system-modules-opengl" "OpenGL module"
+3 -1
View File
@@ -1861,7 +1861,9 @@ showHostInfo() {
[ ! -f "$file" ] && file="/etc/resolv.conf"
if [ -f "$file" ]; then
nameservers=$(grep '^nameserver ' "$file" | sed 's/^nameserver //' | paste -sd ',' | sed 's/,/, /g')
nameservers=$(awk '$1 == "nameserver" { print $2 }' "$file" |
paste -sd ',' |
sed 's/,/, /g' || true)
fi
[ -z "$nameservers" ] && nameservers="(none)"
+1 -2
View File
@@ -320,9 +320,8 @@ FOOTER2="<a href='$SUPPORT'>$SUPPORT</a>"
SOCKETS=1
CPU=$(cpu)
SYS=$(uname -r)
KERNEL=$(echo "$SYS" | cut -b 1)
MINOR=$(echo "$SYS" | cut -d '.' -f2)
ARCH=$(dpkg --print-architecture)
IFS=. read -r KERNEL MINOR _ <<< "$SYS"
CORES=$(grep -c '^processor' /proc/cpuinfo)
if grep -qi "socket(s)" <<< "$(lscpu)"; then