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 14, 2024
1 parent c164665 commit 4c73f0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions stages/org.osbuild.qemu
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,18 @@ 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 4c73f0b

Please sign in to comment.