mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
zfs: add ability to specify full path of to the disk.
This commit is contained in:
parent
8d071db09b
commit
540cd416f6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue