Skip to content

Commit

Permalink
fix: efi fat32 compatibility with nvme 4KBn sector size
Browse files Browse the repository at this point in the history
For Advanced Format 4K Native drives (4-KB-per-sector) drives,
the minimum size is 260 MB, due to a limitation of the FAT32 file format

Signed-off-by: Anthony ARNAUD <[email protected]>
  • Loading branch information
aarnaud committed Jan 16, 2024
1 parent 6c5a0c2 commit 2669d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/pkg/partition/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const (
const (
MiB = 1024 * 1024

EFISize = 100 * MiB
// The actual minimum size is 65595 × 4 KB(NVME sector size)
// = 268677120 bytes = 256.23046875 MB.
EFISize = 260 * MiB
BIOSGrubSize = 1 * MiB
BootSize = 1000 * MiB
// EFIUKISize is the size of the EFI partition when UKI is enabled.
Expand Down

0 comments on commit 2669d0c

Please sign in to comment.