mirror of
https://github.com/nix-community/disko.git
synced 2024-11-09 20:02:37 +03:00
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:
parent
f78b6498f6
commit
036d480ae8
@ -110,7 +110,6 @@ in
|
|||||||
default = ''
|
default = ''
|
||||||
${lib.concatStrings (map (partition: ''
|
${lib.concatStrings (map (partition: ''
|
||||||
sgdisk \
|
sgdisk \
|
||||||
--set-alignment=2048 \
|
|
||||||
--align-end \
|
--align-end \
|
||||||
--new=${toString partition._index}:${partition.start}:${partition.end} \
|
--new=${toString partition._index}:${partition.start}:${partition.end} \
|
||||||
--change-name=${toString partition._index}:${partition.label} \
|
--change-name=${toString partition._index}:${partition.label} \
|
||||||
|
Loading…
Reference in New Issue
Block a user