mirror of
https://github.com/dockur/windows.git
synced 2025-03-14 13:56:03 +00:00
30 lines
674 B
Bash
30 lines
674 B
Bash
#!/usr/bin/env bash
|
||
set -Eeuo pipefail
|
||
|
||
echo "❯ Starting Windows for Docker v$(</run/version)..."
|
||
echo "❯ For support visit https://github.com/dockur/windows"
|
||
|
||
export BOOT_MODE=windows
|
||
|
||
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
|
||
|
||
if [[ "${DISPLAY,,}" == "web" ]]; then
|
||
nginx -e stderr
|
||
fi
|
||
|
||
info "Booting Windows using $VERS..."
|
||
|
||
[[ "$DEBUG" == [Yy1]* ]] && set -x
|
||
exec qemu-system-x86_64 ${ARGS:+ $ARGS}
|