macos/src/entry.sh

27 lines
647 B
Bash
Raw Permalink Normal View History

2024-01-14 13:49:42 +00:00
#!/usr/bin/env bash
set -Eeuo pipefail
2024-06-05 12:16:56 +00:00
: "${VGA:="vmware"}"
: "${DISK_TYPE:="blk"}"
2024-06-04 09:57:27 +00:00
APP="macOS"
2024-06-05 12:16:56 +00:00
SUPPORT="https://github.com/dockur/macos"
2024-01-14 14:19:58 +00:00
2024-01-14 13:49:42 +00:00
cd /run
. reset.sh # Initialize system
2024-06-04 09:57:27 +00:00
. install.sh # Get the OSX images
2024-06-05 15:58:22 +00:00
. disk.sh # Initialize disks
2024-01-14 13:49:42 +00:00
. display.sh # Initialize graphics
. network.sh # Initialize network
. boot.sh # Configure boot
. proc.sh # Initialize processor
. config.sh # Configure arguments
trap - ERR
version=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
2024-06-02 19:54:02 +00:00
info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."
2024-01-14 13:49:42 +00:00
2024-06-02 13:23:39 +00:00
exec qemu-system-x86_64 ${ARGS:+ $ARGS}