Reduce ESP size to 260MiB

This commit is contained in:
2Shirt 2023-06-24 18:56:31 -07:00
parent 228a5f640e
commit d94e9097b7
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -801,7 +801,7 @@ class State():
build_sfdisk_partition_line(
table_type='GPT',
dev_path=f'{dest_prefix}{part_num}',
size='384MiB',
size='260MiB',
details={'parttype': esp_type, 'partlabel': 'EFI System'},
),
)
@ -930,8 +930,8 @@ class State():
# Source: https://en.wikipedia.org/wiki/GUID_Partition_Table
required_size += (1 + 33 + 33) * self.destination.phy_sec
if settings['Create Boot Partition']:
# 384MiB EFI System Partition and a 16MiB MS Reserved partition
required_size += (384 + 16) * 1024**2
# 260MiB EFI System Partition and a 16MiB MS Reserved partition
required_size += (260 + 16) * 1024**2
else:
# MBR only requires one LBA but adding a full 4096 bytes anyway
required_size += 4096