mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
zfs: add ability to specify full path of to the disk.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user