From 8cd2659a60e327c1402c1518aec526c2a7712ff0 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Mon, 21 May 2018 11:27:34 +0100 Subject: [PATCH] run: improve -drive file quoting to be saner --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run b/run index 19526a8..33fdae8 100755 --- a/run +++ b/run @@ -229,7 +229,7 @@ ${vnc}" root='root=/dev/anything' else if [ ! "$arch" = mips64 ]; then - extra_flags="${extra_flags} -drive file='${images_dir}/rootfs.ext2.qcow2,if=virtio,format=qcow2' \\ + extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,if=virtio,format=qcow2' \\ " root='root=/dev/vda' fi @@ -279,7 +279,7 @@ ${extra_flags} \ mips64) if ! "$ramfs"; then root='root=/dev/hda' - extra_flags="${extra_flags} -drive file='${images_dir}/rootfs.ext2.qcow2,format=qcow2' \\ + extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,format=qcow2' \\ " fi cmd="\