harvester / pcidevices

Manage PCI Devices and PCI Device Claims for PCI Passthrough in Harvester

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Remove dependence on `lspci` to enable distroless containers

tlehman opened this issue · comments

Problem

Currently, pcidevices controller is built on an Alpine Linux container. It is not possible to make it a distroless container the way it currently works.

Solution

Replace using os/exec on the lspci command with the jaypipes/pci library.