mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
run: improve -drive file quoting to be saner
This commit is contained in:
4
run
4
run
@@ -229,7 +229,7 @@ ${vnc}"
|
|||||||
root='root=/dev/anything'
|
root='root=/dev/anything'
|
||||||
else
|
else
|
||||||
if [ ! "$arch" = mips64 ]; then
|
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'
|
root='root=/dev/vda'
|
||||||
fi
|
fi
|
||||||
@@ -279,7 +279,7 @@ ${extra_flags} \
|
|||||||
mips64)
|
mips64)
|
||||||
if ! "$ramfs"; then
|
if ! "$ramfs"; then
|
||||||
root='root=/dev/hda'
|
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
|
fi
|
||||||
cmd="\
|
cmd="\
|
||||||
|
|||||||
Reference in New Issue
Block a user