summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@chromium.org>2012-04-14 14:02:22 -0700
committerBrian Harring <ferringb@chromium.org>2012-04-14 16:47:58 -0700
commit471f96ec4b93b9b303e2b7c7eee388c8a0e8ab72 (patch)
tree402e14ec1bf857d0ca0f6c32ad3f0ee1fd1c1cf7 /app-emulation/qemu-init-scripts/files/qemu-init-script
parentMake networking a bit more configurable via NIC_TYPE. (diff)
downloadkvm-tools-471f96ec4b93b9b303e2b7c7eee388c8a0e8ab72.tar.gz
kvm-tools-471f96ec4b93b9b303e2b7c7eee388c8a0e8ab72.tar.bz2
kvm-tools-471f96ec4b93b9b303e2b7c7eee388c8a0e8ab72.zip
Protect against ',' in DISKIMAGE pathways.
Diffstat (limited to 'app-emulation/qemu-init-scripts/files/qemu-init-script')
-rw-r--r--app-emulation/qemu-init-scripts/files/qemu-init-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/app-emulation/qemu-init-scripts/files/qemu-init-script b/app-emulation/qemu-init-scripts/files/qemu-init-script
index 23b12ef..a42e866 100644
--- a/app-emulation/qemu-init-scripts/files/qemu-init-script
+++ b/app-emulation/qemu-init-scripts/files/qemu-init-script
@@ -112,7 +112,7 @@ start() {
--pidfile ${PIDFILE} \
-- -daemonize -pidfile ${PIDFILE} -monitor unix:${MONITOR},server,nowait \
-runas ${DROP_USER} -name ${VMNAME} \
- -drive file="$DISKIMAGE",if=${DRIVE_MODEL:-virtio},cache=${DRIVE_CACHE:-none} \
+ -drive file="${DISKIMAGE//,/,,}",if=${DRIVE_MODEL:-virtio},cache=${DRIVE_CACHE:-none} \
"${NIC_COMMAND[@]}" \
${DISABLE_KVM:---enable-kvm} \
${MEMORY:+-m ${MEMORY}} ${SMP:+-smp ${SMP}} ${VNC:+-vnc ${VNC}} ${OTHER_ARGS}