fix: Set boot mode in entry (#5)

This commit is contained in:
Kroese 2024-02-02 20:14:10 +01:00 committed by GitHub
parent 6877761cd1
commit 9f3f74c4de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ version: "3"
services: services:
qemu: qemu:
container_name: qemu container_name: qemu
image: qemux/qemu-docker image: qemux/qemu-arm
environment: environment:
RAM_SIZE: "1G" RAM_SIZE: "1G"
CPU_CORES: "1" CPU_CORES: "1"

View file

@ -46,7 +46,7 @@ services:
Via `docker run` Via `docker run`
```bash ```bash
docker run -it --rm -e "BOOT=http://example.com/image.iso" -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN qemux/qemu-docker docker run -it --rm -e "BOOT=http://example.com/image.iso" -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN qemux/qemu-arm
``` ```
## FAQ ## FAQ

View file

@ -3,7 +3,6 @@ set -Eeuo pipefail
# Docker environment variables # Docker environment variables
: "${BIOS:=""}" # Bios file : "${BIOS:=""}" # Bios file
: "${BOOT_MODE:="uefi"}" # Boot mode
BOOT_OPTS="" BOOT_OPTS=""
DIR="/usr/share/qemu" DIR="/usr/share/qemu"

View file

@ -7,7 +7,7 @@ set -Eeuo pipefail
: "${VGA:="virtio-gpu"}" # VGA adaptor : "${VGA:="virtio-gpu"}" # VGA adaptor
if [[ "${BOOT_MODE,,}" == "windows" ]]; then if [[ "${BOOT_MODE,,}" == "windows" ]]; then
[[ "$VGA" == "virtio-gpu" ]] && VGA="VGA" [[ "$VGA" == "virtio-gpu" ]] && VGA="ramfb"
fi fi
case "${DISPLAY,,}" in case "${DISPLAY,,}" in

View file

@ -9,9 +9,9 @@ cd /run
. reset.sh # Initialize system . reset.sh # Initialize system
. install.sh # Get bootdisk . install.sh # Get bootdisk
. disk.sh # Initialize disks . disk.sh # Initialize disks
. display.sh # Initialize graphics
. network.sh # Initialize network . network.sh # Initialize network
. boot.sh # Configure boot . boot.sh # Configure boot
. display.sh # Initialize graphics
. proc.sh # Initialize processor . proc.sh # Initialize processor
. config.sh # Configure arguments . config.sh # Configure arguments

View file

@ -7,7 +7,7 @@ set -Eeuo pipefail
: "${CPU_FLAGS:=""}" : "${CPU_FLAGS:=""}"
: "${CPU_MODEL:="host"}" : "${CPU_MODEL:="host"}"
[[ "$ARCH" != "arm"* ]] && KVM="N" [[ "$ARCH" != "arm64" ]] && KVM="N"
if [[ "$KVM" != [Nn]* ]]; then if [[ "$KVM" != [Nn]* ]]; then

View file

@ -25,6 +25,7 @@ echo
: "${RAM_SIZE:="1G"}" # Maximum RAM amount : "${RAM_SIZE:="1G"}" # Maximum RAM amount
: "${DISK_SIZE:="16G"}" # Initial data disk size : "${DISK_SIZE:="16G"}" # Initial data disk size
: "${BOOT_INDEX:="10"}" # Boot index of CD drive : "${BOOT_INDEX:="10"}" # Boot index of CD drive
: "${BOOT_MODE:="uefi"}" # Boot in UEFI mode
# Helper variables # Helper variables