Skip to content

Commit 8cd2659

Browse files
committed
run: improve -drive file quoting to be saner
1 parent 58face4 commit 8cd2659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ ${vnc}"
229229
root='root=/dev/anything'
230230
else
231231
if [ ! "$arch" = mips64 ]; then
232-
extra_flags="${extra_flags} -drive file='${images_dir}/rootfs.ext2.qcow2,if=virtio,format=qcow2' \\
232+
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,if=virtio,format=qcow2' \\
233233
"
234234
root='root=/dev/vda'
235235
fi
@@ -279,7 +279,7 @@ ${extra_flags} \
279279
mips64)
280280
if ! "$ramfs"; then
281281
root='root=/dev/hda'
282-
extra_flags="${extra_flags} -drive file='${images_dir}/rootfs.ext2.qcow2,format=qcow2' \\
282+
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,format=qcow2' \\
283283
"
284284
fi
285285
cmd="\

0 commit comments

Comments
 (0)