summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorManuel Bentele2021-11-16 11:26:21 +0100
committerManuel Bentele2021-11-16 11:26:21 +0100
commitd3bfa358845def3d0390dc883d49596174ecb497 (patch)
treed41e87c1bfbc41f2dcb9c9878282b76dda795e05 /core/modules/hardware-stats
parent[qemu] Set number of CPU cores instead of CPU sockets for a VM (diff)
downloadmltk-d3bfa358845def3d0390dc883d49596174ecb497.tar.gz
mltk-d3bfa358845def3d0390dc883d49596174ecb497.tar.xz
mltk-d3bfa358845def3d0390dc883d49596174ecb497.zip
[hardware-stats] Only print nouveau driver warning if driver is in use
This change fixes the false positive use case where the warning is printed during GPU passthrough although the nouveau is not in use.
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings
index 54894119..3e8f8210 100755
--- a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings
+++ b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings
@@ -9,6 +9,6 @@ if [ -n "$1" ]; then
exec >> "$1"
fi
-if grep -q '^nouveau ' "/proc/modules"; then
+if lspci -nk | grep -q 'Kernel driver in use: nouveau'; then
echo 'slx-gfx-nouveau'
fi