add script option
This commit is contained in:
parent
3c0b94bb55
commit
faee1d933e
|
@ -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])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue