mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-27 03:15:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			828 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			828 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/env bash
 | |
| set -Eeuo pipefail
 | |
| 
 | |
| APP="Windows"
 | |
| BOOT_MODE="windows"
 | |
| SUPPORT="https://github.com/dockur/windows"
 | |
| 
 | |
| cd /run
 | |
| 
 | |
| . reset.sh      # Initialize system
 | |
| . install.sh    # Run installation
 | |
| . disk.sh       # Initialize disks
 | |
| . display.sh    # Initialize graphics
 | |
| . network.sh    # Initialize network
 | |
| . boot.sh       # Configure boot
 | |
| . proc.sh       # Initialize processor
 | |
| . power.sh      # Configure shutdown
 | |
| . config.sh     # Configure arguments
 | |
| 
 | |
| trap - ERR
 | |
| 
 | |
| info "Booting $APP using $VERS..."
 | |
| [[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo
 | |
| 
 | |
| { qemu-system-x86_64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || :
 | |
| (( rc != 0 )) && error "$(<"$QEMU_LOG")" && exit 15
 | |
| 
 | |
| terminal
 | |
| tail -fn +0 "$QEMU_LOG" 2>/dev/null &
 | |
| cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" &
 | |
| wait $! || :
 | |
| 
 | |
| sleep 1 && finish 0
 | 
