diff options
author | Adam Stephens <adam@valkor.net> | 2024-01-23 12:51:18 -0500 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-02-03 14:03:39 +0000 |
commit | 4adadf4494b1d8fff751430c886ce2a59811768a (patch) | |
tree | 7fb0bc0a1f19bf568b17515cafe4c17821f8704f /nixos | |
parent | 7b9bd55d0f67ee214a8c9f3353ded09618ab51b2 (diff) |
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 (cherry picked from commit 7585f26855f12bd56b82e170617454443eb39a4e)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/virtualisation/incus.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/incus.nix b/nixos/modules/virtualisation/incus.nix index 4b627d51a93bc..20f8c58b26d29 100644 --- a/nixos/modules/virtualisation/incus.nix +++ b/nixos/modules/virtualisation/incus.nix @@ -158,7 +158,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 |