fix ~1 GiB of wasted space partitioning

This commit is contained in:
askiiart 2025-04-08 15:01:23 -05:00
parent 29cfb63d20
commit cf1b6b5443
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -149,17 +149,17 @@ def inst_partition(config):
# Create GPT label
exec(['parted', '-s', device, 'mklabel', 'gpt'])
# Create EFI partition
exec(['parted', '-s', device, 'mkpart', 'fat32', '0', '500'])
exec(['parted', '-s', device, 'mkpart', 'fat32', '0%', '512MiB'])
else:
# Create msdos label
exec(['parted', '-s', device, 'mklabel', 'msdos'])
# Create boot partition
exec(['parted', '-s', device, 'mkpart',
'primary', 'ext4', '1MIB', '1400MIB'])
'primary', 'ext4', '0%', '512MiB'])
# Create root partition
exec(['parted', '-s', device, 'mkpart',
'primary', 'ext4', '1500MB', '100%'])
'primary', 'ext4', '513MiB', '100%'])
global orig_main_partition