vm_setup: Fix package name on apt-get-based systems

Neither Debian or Ubuntu have qemu-img in their package repos. The
actual qemu-img tool comes with qemu-utils instead.

Change-Id: Id7cd538144850f3e2da47e279c9f10d5e7179617
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2678
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Michal Berger 2020-05-28 18:19:03 +02:00 committed by Tomasz Zawadzki
parent d6225f0116
commit 25f4704e5c

View File

@ -215,7 +215,7 @@ function install_qemu() {
if [ "$PACKAGEMNG" = "dnf" ]; then
sudo dnf install -y qemu-system-x86 qemu-img
elif [ "$PACKAGEMNG" = "apt-get" ]; then
sudo apt-get install -y qemu-system-x86 qemu-img
sudo apt-get install -y qemu-system-x86 qemu-utils
elif [ "$PACKAGEMNG" = "pacman" ]; then
sudo pacman -Sy --needed --noconfirm qemu
elif [[ $PACKAGEMNG == "yum" ]]; then