From 0a0797a4de26cfc1f8ea6c76280c6cc565fcf1e5 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 20 Dec 2021 15:55:27 +0100 Subject: [PATCH] use strings with parted --- scripts/format-disk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/format-disk.py b/scripts/format-disk.py index ef9b1ce..1b48326 100644 --- a/scripts/format-disk.py +++ b/scripts/format-disk.py @@ -72,8 +72,8 @@ def create_boot_partition(disk): print("Create boot partition {}.".format(boot_partition)) _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]) + _run_command(["parted", "--script", disk, "set", "1", "esp", "on"]) + _run_command(["mkfs.fat", "-F", "32", "-n", "BOOT", boot_partition]) def create_main_partition(disk):