add flag support

This commit is contained in:
Jörg Thalheim committed 2022-08-19 09:52:12 +02:00
1 parent c40b0dc031
commit fc568cf797
4 files changed
+42 -3

No files matched your search

+3
View File
@@ -75,6 +75,9 @@ let {
${optionalString (x.bootable or false) ''
parted -s ${q.device} set ${toString q.index} boot on
''}
${concatMapStringsSep "" (flag: ''
parted -s ${q.device} set ${toString q.index} ${flag} on
'') (x.flags or [])}
${create-f { device = q.device + toString q.index; } x.content}
'';