From 9e939d23ca0ac2b25f35ab565cad8d8368ea5c7b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 30 Dec 2020 01:03:42 +0100 Subject: [PATCH] WIP: install-image: sync and settle between parted commands the partition formats are not applied correctly. Signed-off-by: Benjamin Drung --- install-image | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-image b/install-image index 9bb8560..b41ce14 100755 --- a/install-image +++ b/install-image @@ -254,10 +254,12 @@ def main(): second_parted_script += ["set", str(partition_number), flag, "on"] partition_number += 1 check_call(cmd, args.dry_run) - if second_parted_script: - check_call(["parted", "--script", config["disk"]] + second_parted_script, args.dry_run) check_call(["sync"], args.dry_run) check_call(["udevadm", "settle"], args.dry_run) + if second_parted_script: + check_call(["parted", "--script", config["disk"]] + second_parted_script, args.dry_run) + check_call(["sync"], args.dry_run) + check_call(["udevadm", "settle"], args.dry_run) # Formatting for partition in config["partitions"]: