Skip to content

Commit ffd31f0

Browse files
authored
Update push-image.sh
1 parent 2a70a74 commit ffd31f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/push-image.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ cd ${path_image}
2626

2727
# sparsify and rename the image, check the size, compute checksums
2828

29-
start_size$(du -h packer-${image} | cut -f1)
29+
export LIBGUESTFS_BACKEND=direct
30+
start_size=$(du -h packer-${image} | cut -f1)
3031
mv packer-${image} ${image}.qcow2.temp
3132
virt-sparsify --check-tmpdir ignore --compress --convert qcow2 --format qcow2 ${image}.qcow2.temp ${image}.qcow2
3233
final_size=$(du -h ${image}.qcow2 | cut -f1)

0 commit comments

Comments
 (0)