From 7f65402ef35762c9d758ffda47dfd08a8b2769f1 Mon Sep 17 00:00:00 2001 From: Rony Lee Date: Sun, 24 Jul 2022 20:35:28 +0800 Subject: [PATCH] Add args array --- basic.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basic.sh b/basic.sh index add14b5..6f45e7b 100755 --- a/basic.sh +++ b/basic.sh @@ -6,7 +6,7 @@ OVMF=$VMDIR/firmware #export QEMU_AUDIO_DRV=pa #QEMU_AUDIO_DRV=pa -qemu-system-x86_64 \ +args=( -enable-kvm \ -m 2G \ -machine q35,accel=kvm \ @@ -26,3 +26,6 @@ qemu-system-x86_64 \ -device ide-hd,bus=sata.2,drive=ESP \ -drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \ -device ide-hd,bus=sata.3,drive=InstallMedia \ +) + +qemu-system-x86_64 "${args[@]}"