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

feat: Make USB optional (#607)

parent 5e481cc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ case "${BOOT_MODE,,}" in
    HV="N"
    SECURE="on"
    BOOT_DESC=" (legacy)"
    USB="usb-ehci,id=ehci"
    [ -z "${USB:-}" ] && USB="usb-ehci,id=ehci"
    ;;
  *)
    error "Unknown BOOT_MODE, value \"${BOOT_MODE}\" is not recognized!"
+1 −1
Original line number Diff line number Diff line
@@ -9,9 +9,9 @@ set -Eeuo pipefail
DEF_OPTS="-nodefaults"
SERIAL_OPTS="-serial $SERIAL"
CPU_OPTS="-cpu $CPU_FLAGS -smp $SMP"
USB_OPTS="-device $USB -device usb-tablet"
RAM_OPTS=$(echo "-m ${RAM_SIZE^^}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
MON_OPTS="-monitor $MONITOR -name $PROCESS,process=$PROCESS,debug-threads=on"
[ -n "$USB" ] && [[ "${USB,,}" != "no"* ]] && USB_OPTS="-device $USB -device usb-tablet"
MAC_OPTS="-machine type=${MACHINE},smm=${SECURE},graphics=off,vmport=off,dump-guest-core=off,hpet=off${KVM_OPTS}"

if [[ "${MACHINE,,}" == "pc-i440fx-2"* ]]; then