diff options
-rwxr-xr-x | bin/makeqcow2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/makeqcow2 b/bin/makeqcow2 index 2be0468..d019d70 100755 --- a/bin/makeqcow2 +++ b/bin/makeqcow2 @@ -5,4 +5,5 @@ size="$2" truncate -s "$size" "$name".raw mkfs.ext4 -b 4096 -d "$name" -F -L `basename "$name"` -O ^huge_file -q -U random "$name".raw -exec qemu-img convert -f raw -O qcow2 -c -o compression_type=zstd "$name".raw "$name".qcow2 +qemu-img convert -f raw -O qcow2 -c -o compression_type=zstd "$name".raw "$name".qcow2 +exec rm -f "$name".raw |