Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for NixOS and for better handling #530

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions basic.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#!/usr/bin/env bash

OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VMDIR=$PWD
VMDIR=$(realpath $(dirname $0))
OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa
Expand All @@ -18,11 +18,13 @@ qemu-system-x86_64 \
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
-vga qxl \
-device ich9-intel-hda -device hda-output \
-usb -device usb-kbd -device usb-mouse \
-usb -device usb-kbd -device usb-tablet \
-netdev user,id=net0 \
-device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
-device ich9-ahci,id=sata \
-drive id=ESP,if=none,format=qcow2,file=ESP.qcow2 \
-drive id=ESP,if=none,format=qcow2,file="${VMDIR}/ESP.qcow2" \
-device ide-hd,bus=sata.2,drive=ESP \
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
-drive id=InstallMedia,format=raw,if=none,file="${VMDIR}/BaseSystem.img" \
-device ide-hd,bus=sata.3,drive=InstallMedia \
-drive id=SystemDisk,if=none,file="${VMDIR}/MyDisk.qcow2" \
-device ide-hd,bus=sata.4,drive=SystemDisk
Binary file modified firmware/OVMF_VARS-1024x768.fd
Binary file not shown.
4 changes: 2 additions & 2 deletions jumpstart.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# jumpstart.sh: Fetches BaseSystem and converts it to a viable format.
# by Foxlet <[email protected]>
Expand Down Expand Up @@ -36,4 +36,4 @@ case $argument in
;;
esac

"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
dmg2img "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# make.sh: Generate customized libvirt XML.
# by Foxlet <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion tools/FetchMacOS/fetch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# fetch.sh: Run fetch-macos.py with safety checks
# by Foxlet <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion tools/template.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<emulator>/run/current-system/sw/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='VMDIR/ESP.qcow2'/>
Expand Down