mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 02:27:27 +03:00
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:
parent
713eb78002
commit
5b19fb2e74
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user