2
0

Avoid dependency on specific PCI addresses in qemu config

These addresses will vary depending on the target architecture,
so let's name them via /bus instead.
This commit is contained in:
Peter Collingbourne
2026-05-02 23:22:51 -07:00
parent d0376d4101
commit e994e25d6e

View File

@@ -42,11 +42,11 @@
in
{
wan = link.build {
devpath = "/devices/pci0000:00/0000:00:12.0/virtio0";
devpath = "/bus/virtio/devices/virtio0";
ifname = "wan";
};
lan = link.build {
devpath = "/devices/pci0000:00/0000:00:13.0/virtio1";
devpath = "/bus/virtio/devices/virtio1";
ifname = "lan";
};