Fixup: format ESP

This commit is contained in:
Filip Stedronsky 2021-10-16 18:25:58 +02:00
parent 6167ef22c5
commit 37f90009be
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ def main(*, disk=None, part=None, wim=None, iso=None, image_name=None, unattend=
part = part_path(dev, 1)
if efi and not postproc_only: # format ESP
esp = part_path(dev, 2)
cmd = ['mkfs.fat', '-F32', str(esp)]
subprocess.run(['mkfs.fat', '-F32', '-n', 'ESP', str(esp)], check=True)
setup_part(part, wim, image_name, unattend=unattend, postproc=postproc, postproc_only=postproc_only)
else:
setup_part(part, unattend=unattend, postproc=postproc, postproc_only=postproc_only)