diff --git a/lib/img-functions b/lib/img-functions index 43c7ec0e..f7ac4781 100644 --- a/lib/img-functions +++ b/lib/img-functions @@ -41,8 +41,9 @@ function cleanup () { function ensure_nbd () { NBD=`which qemu-nbd` || true if [ -z "$NBD" ]; then - echo "Need qemu-nbd to build qcow2 files." - sudo apt-get install qemu-utils + echo "qemu-nbd is not found in your PATH" + echo "Please install it on your system" + exit 1 fi # prep nbd for mounting (lsmod | grep '^nbd ') || sudo modprobe nbd max_part=16