From 882d9fa5ec509ccd52413e135b0f613fa7ea7f3b Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 16 Dec 2011 16:27:17 -0300 Subject: [PATCH] [archiso] update testiso Signed-off-by: Gerardo Exequiel Pozzi --- archiso/testiso | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/archiso/testiso b/archiso/testiso index 75bedc9..71e85e1 100755 --- a/archiso/testiso +++ b/archiso/testiso @@ -1,6 +1,6 @@ #!/bin/bash -if [ $# -eq 0 ]; then +if [[ $# -eq 0 ]]; then echo "usage: testiso [id|ic|sd|sc|vd|vc]" echo echo "id boot .iso as IDE disk" @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then echo "sd boot .iso as SCSI disk" echo "sc boot .iso as SCSI cd-rom" echo "vd boot .iso as virtio disk" - echo "vc boot .iso as virtio cd-rom" +# echo "vc boot .iso as virtio cd-rom" exit 1 fi @@ -18,9 +18,9 @@ case "${2}" in sd) IF="scsi"; MEDIA="disk";; sc) IF="scsi"; MEDIA="cdrom";; vd) IF="virtio"; MEDIA="disk";; - vc) IF="virtio"; MEDIA="cdrom";; +# vc) IF="virtio"; MEDIA="cdrom";; *) IF="scsi"; MEDIA="cdrom";; esac -echo qemu -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on -qemu -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on +echo qemu-system-x86_64 -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on +qemu-system-x86_64 -m 256 -drive file=${1},if=${IF},media=${MEDIA},boot=on