diff --git a/lib/types/zpool.nix b/lib/types/zpool.nix index b7e35d3..f6167be 100644 --- a/lib/types/zpool.nix +++ b/lib/types/zpool.nix @@ -117,7 +117,7 @@ in format_output = (mode: members: '' entries+=("${mode}=${ lib.concatMapStringsSep " " - (d: "/dev/disk/by-partlabel/disk-${d}-zfs") members + (d: if lib.strings.hasPrefix "/" d then d else "/dev/disk/by-partlabel/disk-${d}-zfs") members }") ''); format_vdev = (vdev: format_output vdev.mode vdev.members);