diff options
| author | Bobby <[email protected]> | 2025-12-08 19:54:44 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-08 19:54:44 +0530 |
| commit | 72ebf27948b995ec4b4a0ac45ff2527b45d35f4a (patch) | |
| tree | 2225c6bb3054a6a34c164b7410c2408ea024476d /scripts | |
| parent | a2fe276869b95a508d9b87be4fd0faa9991f91a7 (diff) | |
| download | akiba-72ebf27948b995ec4b4a0ac45ff2527b45d35f4a.tar.xz akiba-72ebf27948b995ec4b4a0ac45ff2527b45d35f4a.zip | |
update run for linux and mac
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/run.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/run.sh b/scripts/run.sh index 921e7a5..66f3d0b 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,8 +1,13 @@ #!/bin/bash + +UEFI_FW="/opt/homebrew/share/qemu/edk2-x86_64-code.fd" +if [ ! -f "$UEFI_FW" ]; then + UEFI_FW="/usr/share/edk2/x64/OVMF_CODE.fd" +fi + qemu-system-x86_64 \ -M q35 \ - -drive if=pflash,format=raw,readonly=on,file=/opt/homebrew/share/qemu/edk2-x86_64-code.fd \ - -drive file=iso/akiba.img,format=raw,if=none,id=maindisk \ - -device ide-hd,drive=maindisk,bus=ide.2,bootindex=0 \ + -drive if=pflash,format=raw,readonly=on,file="$UEFI_FW" \ + -drive file=iso/akiba.img,format=raw \ -m 2048M \ -serial stdio
\ No newline at end of file |
