mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 06:21:46 +01:00
Merge pull request #775 from bgilbert/fat32
disk_util: use FAT32 on ESP
This commit is contained in:
commit
97161f4380
@ -423,6 +423,9 @@ def FormatFat(part, device):
|
|||||||
cmd = ['mkfs.vfat']
|
cmd = ['mkfs.vfat']
|
||||||
if 'fs_label' in part:
|
if 'fs_label' in part:
|
||||||
cmd += ['-n', part['fs_label']]
|
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)
|
Sudo(cmd + [device, vfat_blocks], stdout_null=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user