tools/create_box.sh in vagrant-libvirt-0.0.28 vs tools/create_box.sh in vagrant-libvirt-0.0.29
- old
+ new
@@ -58,10 +58,10 @@
TMP_DIR="$CWD/_tmp_package"
TMP_IMG="$TMP_DIR/box.img"
mkdir -p "$TMP_DIR"
-[[ ! -w "$IMG" ]] && error "'$IMG': Permission denied"
+[[ ! -r "$IMG" ]] && error "'$IMG': Permission denied"
# We move / copy (when the image has master) the image to the tempdir
# ensure that it's moved back / removed again
if [[ -n $(backing "$IMG") ]]; then
echo "==> Image has backing image, copying image and rebasing ..."