add flag support

This commit is contained in:
Jörg Thalheim 2022-08-17 17:52:12 +02:00
parent c40b0dc031
commit fc568cf797
4 changed files with 42 additions and 3 deletions

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}
'';