}
parse_args() {
+ o_qemu_extra=()
while [ "$#" -gt 0 ]; do
case "$1" in
--kernel) o_kernel="$2"; shift 2 ;;
elif [ -z "$o_subtarget" ]; then
o_subtarget="$1"
else
- o_qemu_extra=("${o_qemu_extra[@]}" "$1")
+ o_qemu_extra+=("$1")
fi
shift
;;
if [ ! -f "$rootfs" -a -s "$rootfs.gz" ]; then
gunzip "$rootfs.gz"
fi
- o_qemu_extra=( \
+ o_qemu_extra+=( \
"-drive" "file=$rootfs,format=raw,if=virtio" \
"-append" "root=/dev/vda rootwait" \
- "${o_qemu_extra[@]}" \
- )
+ )
}
"$qemu_exe" -machine virt -cpu "$cpu" -nographic \