qemu-arm/src/entry.sh
2024-04-22 11:28:19 +02:00

23 lines
574 B
Bash
Executable file

#!/usr/bin/env bash
set -Eeuo pipefail
APP="QEMU"
SUPPORT="https://github.com/qemus/qemu-arm"
cd /run
. reset.sh # Initialize system
. install.sh # Get bootdisk
. disk.sh # Initialize disks
. display.sh # Initialize graphics
. network.sh # Initialize network
. boot.sh # Configure boot
. proc.sh # Initialize processor
. config.sh # Configure arguments
trap - ERR
info "Booting image${BOOT_DESC} on a ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
[[ "$DEBUG" == [Yy1]* ]] && set -x
exec qemu-system-aarch64 ${ARGS:+ $ARGS}