diff options
author | tv <tv@krebsco.de> | 2018-07-13 13:37:53 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-07-13 13:42:54 +0200 |
commit | 70c6a30d85dcdb1a2022a52a485e6b0e4c47b4ca (patch) | |
tree | 7d0bc6ae0e24fdab10a021853a9756a0a7b5a1f1 | |
parent | db6151ff06777deb05b345f1775c037d8671687d (diff) |
fun.table: use concatStringsSep
-rw-r--r-- | disko.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ let fun.table = q: x: '' parted -s -a optimal ${q.device} mklabel ${x.format} - ${concatStrings (imap (i: part: " \nparted -s -a optimal ${q.device} mkpart ${part.part-type} ${part.fs-type or ""} ${part.start} ${part.end} ${optionalString (part.bootable or false) "\nparted -s -a optimal ${q.device} set ${toString i} boot on "}") x.partitions)} + ${concatStringsSep "\n" (imap (i: part: "parted -s -a optimal ${q.device} mkpart ${part.part-type} ${part.fs-type or ""} ${part.start} ${part.end} ${optionalString (part.bootable or false) "\nparted -s -a optimal ${q.device} set ${toString i} boot on "}") x.partitions)} ${concatStrings (imap (i: x: f (q // { device = q.device + toString i; }) x.content) x.partitions)} ''; |