mirror of
https://github.com/beclab/Olares
synced 2026-05-23 16:58:26 +00:00
fix(cli): also consider 3D controller when detecting GPU by lspci (#1360)
This commit is contained in:
parent
37e37a814d
commit
d5673b81e0
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ func (p *NvidiaGraphicsCard) PreCheck(runtime connector.Runtime) (found bool, er
|
|||
}
|
||||
}()
|
||||
output, err := runtime.GetRunner().SudoCmd(
|
||||
"lspci | grep -i vga | grep -i nvidia", false, false)
|
||||
"lspci | grep -i -e vga -e 3d | grep -i nvidia", false, false)
|
||||
// an empty grep also results in the exit code to be 1
|
||||
// and thus a non-nil err
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue