Unverified Commit df5fad7f authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Add additional debug messages (#859)

parent 0281378c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ SECURE="off"
[[ "$SMM" == [Yy1]* ]] && SECURE="on"
[ -n "$BIOS" ] && BOOT_MODE="custom"

msg="Configuring boot options..."
html "$msg"
[[ "$DEBUG" == [Yy1]* ]] && echo "$msg"

case "${BOOT_MODE,,}" in
  "uefi" | "" )
    BOOT_MODE="uefi"
+4 −0
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@ set -Eeuo pipefail
: "${MONITOR:="telnet:localhost:7100,server,nowait,nodelay"}"
: "${SMP:="$CPU_CORES,sockets=1,dies=1,cores=$CPU_CORES,threads=1"}"

msg="Configuring QEMU..."
html "$msg"
[[ "$DEBUG" == [Yy1]* ]] && echo "$msg"

DEV_OPTS=""
DEF_OPTS="-nodefaults"
SERIAL_OPTS="-serial $SERIAL"
+3 −1
Original line number Diff line number Diff line
@@ -565,7 +565,9 @@ addDevice () {
  return 0
}

html "Initializing disks..."
msg="Initializing disks..."
html "$msg"
[[ "$DEBUG" == [Yy1]* ]] && echo "$msg"

[ -z "${DISK_OPTS:-}" ] && DISK_OPTS=""
[ -z "${DISK_TYPE:-}" ] && DISK_TYPE="scsi"
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@ if [[ "$CPU_VENDOR" != "GenuineIntel" ]]; then
  return 0
fi

msg="Configuring display drivers..."
html "$msg"
[[ "$DEBUG" == [Yy1]* ]] && echo "$msg"

[[ "${VGA,,}" == "virtio" ]] && VGA="virtio-vga-gl"
DISPLAY_OPTS="-display egl-headless,rendernode=$RENDERNODE"
DISPLAY_OPTS+=" -device $VGA"
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ set -Eeuo pipefail

cd /run

. start.sh      # Placeholder
. utils.sh      # Load functions
. reset.sh      # Initialize system
. define.sh     # Define images
Loading