windows/src/entry.sh

31 lines
687 B
Bash
Raw Normal View History

2024-01-14 14:49:42 +01:00
#!/usr/bin/env bash
set -Eeuo pipefail
echo " Starting Windows for Docker v$(</run/version)..."
echo " For support visit https://github.com/dockur/windows"
2024-01-19 01:25:39 +01:00
echo
2024-01-14 14:49:42 +01:00
2024-01-14 15:19:58 +01:00
export BOOT_MODE=windows
2024-01-14 14:49:42 +01:00
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
2024-01-17 20:30:52 +01:00
if [[ "${DISPLAY,,}" == "web" ]]; then
nginx -e stderr
fi
2024-01-16 19:58:55 +01:00
2024-01-19 01:25:39 +01:00
echo && info "Booting Windows using $VERS..."
2024-01-14 14:49:42 +01:00
[[ "$DEBUG" == [Yy1]* ]] && set -x
exec qemu-system-x86_64 ${ARGS:+ $ARGS}