scripts/vagrant: fix permissions for backend files

Owner and group were not set properly on Ubuntu systems,
as they use different names for that.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: Ie7fc49516072ce4bcd506c4c39bbd26786004c49
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1580
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Karol Latecki 2020-03-30 12:09:50 +02:00 committed by Tomasz Zawadzki
parent 3d3e8096b7
commit a34c17027b

View File

@ -65,5 +65,13 @@ if [ ! "${SYSTEM}" = "FreeBSD" ]; then
fi
chmod 777 $nvme_disk
chown qemu:qemu $nvme_disk
if [ $WHICH_OS == "Fedora" ]; then
chown qemu:qemu $nvme_disk
elif [ $WHICH_OS == "Ubuntu" ]; then
chown libvirt-qemu:kvm $nvme_disk
else
# That's just a wild guess for now
# TODO: needs improvement for other distros
chown libvirt-qemu:kvm $nvme_disk
fi
fi