Merge pull request #864 from dm0-/loop

disk_util: Add -I for mkfs.vfat
This commit is contained in:
David Michael 2019-02-11 11:16:21 -05:00 committed by GitHub
commit e3677bf8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,7 @@ def FormatFat(part, device):
vfat_block_size = 1024 vfat_block_size = 1024
vfat_blocks = part['bytes'] // vfat_block_size vfat_blocks = part['bytes'] // vfat_block_size
cmd = ['mkfs.vfat'] cmd = ['mkfs.vfat', '-I']
if 'fs_label' in part: if 'fs_label' in part:
cmd += ['-n', part['fs_label']] cmd += ['-n', part['fs_label']]
if part['type'] == 'efi': if part['type'] == 'efi':