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 2023-07-24 15:12:05 -07:00 committed by mergify[bot]
parent 713eb78002
commit 5b19fb2e74

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