Merge pull request #806 from bgilbert/fat32

Revert "Revert "disk_util: use FAT32 on ESP""
This commit is contained in:
Benjamin Gilbert 2018-04-13 13:17:47 -04:00 committed by GitHub
commit 2ea6fc0e02
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)