Add timeouts

This commit is contained in:
Andreas Zweili 2024-01-14 16:50:27 +01:00
parent cb3f315db9
commit 87f45ae4fd
1 changed files with 3 additions and 0 deletions

View File

@ -92,8 +92,11 @@ def _create_uefi():
def create_boot_partition(disk):
boot_partition = "{}{}1".format(disk, _partition_suffix(disk))
print("Create boot partition {}.".format(boot_partition))
sleep(1)
_run_command(["parted", "--script", disk, "mkpart", "ESP", "fat32", "0%", "1GiB"])
sleep(1)
_run_command(["parted", "--script", disk, "set", "1", "esp", "on"])
sleep(1)
_run_command(["mkfs.fat", "-F", "32", "-n", "BOOTTOFRMT", boot_partition])
sleep(5)