lib/types/gpt: do not hard-code alignment to 2048 sectors

On 4Kn disks, 2048-sector alignment is equivalent to 8 MiB which is
excessive. Moreover, there is no point in specifying _any_ alignment
at all because sgdisk defaults to 1 MiB already.

Fixes #497.
This commit is contained in:
Ivan Shapovalov 2024-01-14 02:40:26 +01:00 committed by mergify[bot]
parent f78b6498f6
commit 036d480ae8

View File

@ -110,7 +110,6 @@ in
default = ''
${lib.concatStrings (map (partition: ''
sgdisk \
--set-alignment=2048 \
--align-end \
--new=${toString partition._index}:${partition.start}:${partition.end} \
--change-name=${toString partition._index}:${partition.label} \