From 036d480ae895afff54da5034331950827a7f317a Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Sun, 14 Jan 2024 02:40:26 +0100 Subject: [PATCH] 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. --- lib/types/gpt.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/types/gpt.nix b/lib/types/gpt.nix index 6a63e7b..f830544 100644 --- a/lib/types/gpt.nix +++ b/lib/types/gpt.nix @@ -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} \