aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 14:54:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 14:54:18 -0300
commit82854901be248b759056f291d26d50b85ad9a143 (patch)
tree85314b6bd4933ce5b9bd418baa97f49da12310a4
parent0edde7755d484e874659d74691d304005faa884f (diff)
downloadkvmx-82854901be248b759056f291d26d50b85ad9a143.tar.gz
kvmx-82854901be248b759056f291d26d50b85ad9a143.tar.bz2
Normalize shared_folder value on kvmx_up
-rwxr-xr-xkvmx1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index e1016da..7c60af9 100755
--- a/kvmx
+++ b/kvmx
@@ -67,6 +67,7 @@ function kvmx_up {
fi
if [ ! -z "$shared_folder" ]; then
+ shared_folder="`cd $shared_folder &> /dev/null && pwd`"
local shared="-fsdev local,id=shared,path=$shared_folder,security_model=none -device virtio-9p-pci,fsdev=shared,mount_tag=shared"
fi