Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Epaneshnikov <aarnaarn2@gmail.com>2020-10-07 18:11:13 +0300
committerAlexander Epaneshnikov <aarnaarn2@gmail.com>2020-10-10 13:03:02 +0000
commit5f4260fcb11b6b7ab5412b00bea282808c349a0c (patch)
tree4db56de5e2e4b7a896374a7970e75efee7adc80e /scripts
parent2c66cd45e031d912c446e3a57fb22f8deef4116c (diff)
add sound support in run_archiso.sh
also included serial output on stdio it helps in debugging without sight.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run_archiso.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh
index 1ce00cf..9f55369 100755
--- a/scripts/run_archiso.sh
+++ b/scripts/run_archiso.sh
@@ -86,12 +86,16 @@ run_image() {
-drive "id=${mediatype}0,if=none,format=raw,media=${mediatype/hd/disk},readonly=on,file=${image}" \
-display sdl \
-vga virtio \
+ -audiodev pa,id=snd0 \
+ -device ich9-intel-hda \
+ -device hda-output,audiodev=snd0 \
-device virtio-net-pci,romfile=,netdev=net0 -netdev user,id=net0 \
- -machine type=q35,smm=on,accel=kvm \
+ -machine type=q35,smm=on,accel=kvm,pcspk-audiodev=snd0 \
-global ICH9-LPC.disable_s3=1 \
-enable-kvm \
"${qemu_options[@]}" \
- -no-reboot
+ -no-reboot \
+ -serial stdio
}
set_image() {