Added true to avoid exit on error
disk-image-create just died without any warning Change-Id: Ia5da4188d64bb22540b57d01184b91faa59149e7
This commit is contained in:
parent
e47bb57131
commit
258185b7a2
@ -39,7 +39,7 @@ function cleanup () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ensure_nbd () {
|
function ensure_nbd () {
|
||||||
NBD=`which qemu-nbd`
|
NBD=`which qemu-nbd` || true
|
||||||
if [ -z "$NBD" ]; then
|
if [ -z "$NBD" ]; then
|
||||||
echo "Need qemu-nbd to build qcow2 files."
|
echo "Need qemu-nbd to build qcow2 files."
|
||||||
sudo apt-get install qemu-utils
|
sudo apt-get install qemu-utils
|
||||||
|
Loading…
Reference in New Issue
Block a user