fix: udev vfio rule to truenas sata controller 07:00.0, drop stale ahci rule
This commit is contained in:
1 parent
7aa94161aa
commit
3d5a75511f
1 file changed
+3
-8
@@ -28,15 +28,10 @@
|
||||
|
||||
# Bind per-device via udev using driver_override and drivers_probe
|
||||
services.udev.extraRules = ''
|
||||
# Bind 0000:09:00.0 to vfio-pci
|
||||
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:09:00.0", \
|
||||
# Bind 0000:07:00.0 (Marvell 88SE9215, passed through to truenas as sata-pci) to vfio-pci
|
||||
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:07:00.0", ATTR{vendor}=="0x1b4b", ATTR{device}=="0x9215", \
|
||||
ATTR{driver_override}="vfio-pci", \
|
||||
RUN+="/bin/sh -c 'modprobe vfio-pci; echo 0000:09:00.0 > /sys/bus/pci/drivers_probe'"
|
||||
|
||||
# Bind 0000:08:00.0 to ahci (host)
|
||||
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:08:00.0", \
|
||||
ATTR{driver_override}="ahci", \
|
||||
RUN+="/bin/sh -c 'modprobe ahci; echo 0000:08:00.0 > /sys/bus/pci/drivers_probe'"
|
||||
RUN+="/bin/sh -c 'modprobe vfio-pci; echo 0000:07:00.0 > /sys/bus/pci/drivers_probe'"
|
||||
'';
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
|
||||
Reference in new issue
Block a user