clean up the split partitions

otherwise we end up publishing them
This commit is contained in:
Harald Sitter
2024-11-06 22:56:40 +01:00
parent 16d19e57d5
commit 4dfbf9ad3e

View File

@@ -38,3 +38,7 @@ for index, partition in enumerate(partitions):
# Then reassemble them into a new image using those squeezed partition images.
open(RAW, "w").close()
subprocess.run(["systemd-repart", "--size=auto", "--empty=allow", "--dry-run=no", "--definitions=mkosi.repart-rebuild", "--root", os.getcwd(), RAW], check=True)
# Clean up the partitions again
for partition in partitions:
os.remove(f"{partition["name"]}.raw")