add script option

This commit is contained in:
Andreas Zweili 2021-12-20 15:44:51 +01:00
parent 3c0b94bb55
commit faee1d933e
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ def create_boot_partition(disk):
print("Create boot partition.")
boot_partition = "{}{}1".format(disk, _partition_suffix(disk))
print("Create boot partition {}.".format(boot_partition))
_run_command(["parted", disk, "--", "mkpart",
"ESP", "fat32", "1MiB", "512MiB"])
_run_command(["parted", disk, "--", "set", 1, "esp", "on"])
_run_command(["parted", "--script", disk, "mkpart",
"ESP", "fat32", "1MiB", "512MiB"])
_run_command(["parted", "--script", disk, "set", 1, "esp", "on"])
_run_command(["mkfs.fat", "-F", 32, "-n", "BOOT", boot_partition])