Skip to content

Commit

Permalink
WIP: install-image: sync and settle between parted commands
Browse files Browse the repository at this point in the history
the partition formats are not applied correctly.

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Dec 18, 2023
1 parent db3802e commit 9e939d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install-image
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 9e939d2

Please sign in to comment.