diff options
author | Manuel Bentele | 2021-11-16 11:26:21 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-11-16 11:26:21 +0100 |
commit | d3bfa358845def3d0390dc883d49596174ecb497 (patch) | |
tree | d41e87c1bfbc41f2dcb9c9878282b76dda795e05 /core/modules/hardware-stats | |
parent | [qemu] Set number of CPU cores instead of CPU sockets for a VM (diff) | |
download | mltk-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-x | core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-warnings | 2 |
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 |