From 37f90009be096cf84f595cd1f907ed41958edc33 Mon Sep 17 00:00:00 2001 From: Filip Stedronsky Date: Sat, 16 Oct 2021 18:25:58 +0200 Subject: [PATCH] Fixup: format ESP --- setup_win10.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_win10.py b/setup_win10.py index b005eef..95db690 100755 --- a/setup_win10.py +++ b/setup_win10.py @@ -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)