Skip to content

Commit

Permalink
nixos/incus: add zfs/lib/udev to path
Browse files Browse the repository at this point in the history
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
  • Loading branch information
adamcstephens committed Feb 2, 2024
1 parent 3747126 commit 7585f26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/virtualisation/incus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7585f26

Please sign in to comment.