Skip to content

Commit

Permalink
stages/qemu: sanity check created image
Browse files Browse the repository at this point in the history
I'm having a lot of trouble investigating [1]. Let's add this here
as a small sanity check for now.

[1] coreos/coreos-assembler#3728
  • Loading branch information
dustymabe committed Feb 15, 2024
1 parent c164665 commit 9def50b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stages/org.osbuild.qemu
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,17 @@ def main(inputs, output, options):
cmd, check=True
)

# Sanity check that the image is 100%
cmd = [
"qemu-img", "compare",
"-f", "raw",
"-F", fmt["type"],
source, target
]
subprocess.run(
cmd, check=True
)

return 0


Expand Down

0 comments on commit 9def50b

Please sign in to comment.