Unverified Commit 7585f268 authored by Adam Stephens's avatar Adam Stephens
Browse files

nixos/incus: add zfs/lib/udev to path

Incus needs to find zvol_id for some operations, but zfs does not put
this executable in the bin directory. Exposing lib/udev into the Incus
path solves discovery of the executable

https://github.com/lxc/incus/blob/e5690705e842d3961d8a1d18c0ec002c25345af8/internal/server/storage/drivers/driver_zfs_volumes.go#L1820C1-L1820C41
parent 37471261
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -160,7 +160,10 @@ in
        "network-online.target"
      ];

      path = lib.mkIf config.boot.zfs.enabled [ config.boot.zfs.package ];
      path = lib.mkIf config.boot.zfs.enabled [
        config.boot.zfs.package
        "${config.boot.zfs.package}/lib/udev"
      ];

      environment = {
        # Override Path to the LXC template configuration directory