Fix msdos partition table creation

The partition fs-type was specified twice on partition creation when the
msdos partition table type is used. Fix this to only be specified once.
This commit is contained in:
Jared Baur authored and mergify[bot] committed 2023-07-25 09:44:19 +00:00
1 parent 713eb78002
commit 5b19fb2e74
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@
parted -s ${config.device} -- mkpart ${partition.name} ${diskoLib.maybeStr partition.fs-type} ${partition.start} ${partition.end}
''}
${lib.optionalString (config.format == "msdos") ''
parted -s ${config.device} -- mkpart ${partition.part-type} ${diskoLib.maybeStr partition.fs-type} ${diskoLib.maybeStr partition.fs-type} ${partition.start} ${partition.end}
parted -s ${config.device} -- mkpart ${partition.part-type} ${diskoLib.maybeStr partition.fs-type} ${partition.start} ${partition.end}
''}
# ensure /dev/disk/by-path/..-partN exists before continuing
udevadm trigger --subsystem-match=block