[PATCH 16/20] host/rootfs: explicitly set PATH in network add script

Demi Marie Obenour
2025-09-04T23:48:18Z

NixOS's systemd-udevd sets it to something unhelpful that prevents
non-execline tools from being found.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
---
host/rootfs/etc/mdev/net/add | 1 +
1 file changed, 1 insertion(+)

diff --git a/host/rootfs/etc/mdev/net/add b/host/rootfs/etc/mdev/net/add
index f343779dcab6ca10c1661e40d3f5bfb8f6080e38..a964376abb75cdd7b07d608c1b76c25c802bcf49 100755
--- a/host/rootfs/etc/mdev/net/add
+++ b/host/rootfs/etc/mdev/net/add
@@ -5,6 +5,7 @@
# Assign the whole IOMMU group containing this device to the network
# VM.

+export PATH /usr/bin
if { modprobe vfio-pci }

importas -i devpath DEVPATH

--
2.51.0