Merge pull request #775 from bgilbert/fat32

disk_util: use FAT32 on ESP
This commit is contained in:
Benjamin Gilbert 2017-11-15 15:17:27 -08:00 committed by GitHub
commit 97161f4380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,6 +423,9 @@ def FormatFat(part, device):
cmd = ['mkfs.vfat']
if 'fs_label' in part:
cmd += ['-n', part['fs_label']]
if part['type'] == 'efi':
# ESP is FAT32 irrespective of size
cmd += ['-F', '32']
Sudo(cmd + [device, vfat_blocks], stdout_null=True)