mirror of
https://github.com/fankes/komari-agent.git
synced 2026-02-05 04:37:29 +08:00
fix: 更新排除的驱动程序列表,添加 cirrus-qemu 和 ast
This commit is contained in:
@@ -104,16 +104,18 @@ func getFromSysfsDRM() string {
|
|||||||
matches, _ := filepath.Glob("/sys/class/drm/card*")
|
matches, _ := filepath.Glob("/sys/class/drm/card*")
|
||||||
|
|
||||||
excludedDrivers := map[string]bool{
|
excludedDrivers := map[string]bool{
|
||||||
"virtio-pci": true,
|
"virtio-pci": true,
|
||||||
"virtio_gpu": true,
|
"virtio_gpu": true,
|
||||||
"bochs-drm": true,
|
"bochs-drm": true,
|
||||||
"qxl": true,
|
"qxl": true,
|
||||||
"vmwgfx": true,
|
"vmwgfx": true,
|
||||||
"cirrus": true,
|
"cirrus": true,
|
||||||
"vboxvideo": true,
|
"vboxvideo": true,
|
||||||
"hyperv_fb": true,
|
"hyperv_fb": true,
|
||||||
"simpledrm": true,
|
"simpledrm": true,
|
||||||
"simplefb": true,
|
"simplefb": true,
|
||||||
|
"cirrus-qemu": true,
|
||||||
|
"ast": true, //some LXC containers
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, path := range matches {
|
for _, path := range matches {
|
||||||
|
|||||||
Reference in New Issue
Block a user