diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-31 21:27:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-31 21:27:43 +0000 |
commit | 3630d00f25b383088579cf2b4194988546de0ae0 (patch) | |
tree | a0320bd2e25aab680f1bdaea01f125d18254025f /bin/makeqcow2 | |
parent | 75f580bccb1208ce1bdbdd26d5514f9f357826f7 (diff) | |
download | lh-bootstrap-3630d00f25b383088579cf2b4194988546de0ae0.tar.xz |
Remove the raw files after converting to qcow2
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'bin/makeqcow2')
-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 |