mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
Use concatMapStrings
This commit is contained in:
1 parent
54be8abff0
commit
bf440582c4
1 file changed
+2
-2
+2
-2
@@ -210,7 +210,7 @@ in
|
|||||||
if ! blkid "${config.device}" >&2; then
|
if ! blkid "${config.device}" >&2; then
|
||||||
sgdisk --clear "${config.device}"
|
sgdisk --clear "${config.device}"
|
||||||
fi
|
fi
|
||||||
${lib.concatStrings (map (partition:
|
${lib.concatMapStrings (partition:
|
||||||
let
|
let
|
||||||
args = ''
|
args = ''
|
||||||
--partition-guid="${toString partition._index}:${if partition.uuid == null then "R" else partition.uuid}" \
|
--partition-guid="${toString partition._index}:${if partition.uuid == null then "R" else partition.uuid}" \
|
||||||
@@ -234,7 +234,7 @@ in
|
|||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
''
|
''
|
||||||
) sortedPartitions)}
|
) sortedPartitions}
|
||||||
|
|
||||||
${
|
${
|
||||||
lib.optionalString (sortedHybridPartitions != [])
|
lib.optionalString (sortedHybridPartitions != [])
|
||||||
|
|||||||
Reference in new issue
Block a user