Signed-off-by: Pierre Schmitz <pierre@archlinux.de> --- archiso/testiso | 16 ++++++---------- 1 Datei geändert, 6 Zeilen hinzugefügt(+), 10 Zeilen entfernt(-) diff --git a/archiso/testiso b/archiso/testiso index 71e85e1..7a4d5f1 100755 --- a/archiso/testiso +++ b/archiso/testiso @@ -1,26 +1,22 @@ #!/bin/bash if [[ $# -eq 0 ]]; then - echo "usage: testiso <isofile> [id|ic|sd|sc|vd|vc]" + echo "usage: testiso <isofile> [id|ic|vd|vc]" echo echo "id boot .iso as IDE disk" echo "ic boot .iso as IDE cd-rom" - 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 case "${2}" in id) IF="ide"; MEDIA="disk";; ic) IF="ide"; MEDIA="cdrom";; - sd) IF="scsi"; MEDIA="disk";; - sc) IF="scsi"; MEDIA="cdrom";; vd) IF="virtio"; MEDIA="disk";; -# vc) IF="virtio"; MEDIA="cdrom";; - *) IF="scsi"; MEDIA="cdrom";; + vc) IF="virtio"; MEDIA="cdrom";; + *) IF="ide"; MEDIA="cdrom";; esac -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 +echo qemu-system-x86_64 -m 256 -drive file=${1},if=${IF},media=${MEDIA} +qemu-system-x86_64 -m 256 -drive file=${1},if=${IF},media=${MEDIA} -- 1.7.11