Skip to content

Commit

Permalink
feat: Use VirtIO disk for performance (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jun 2, 2024
1 parent 63de167 commit 6cabae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entry.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -Eeuo pipefail

: "${DISK_TYPE:="ide"}"
: "${DISK_TYPE:="blk"}"
: "${USB:="qemu-xhci,id=xhci -device usb-kbd,bus=xhci.0"}"

APP="OSX"
Expand All @@ -20,7 +20,7 @@ cd /run

trap - ERR

version=$(qemu-system-aarch64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
version=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."

exec qemu-system-x86_64 ${ARGS:+ $ARGS}

0 comments on commit 6cabae6

Please sign in to comment.