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

fix: Remove cdrom for pc-q35-2.x (#419)

parent cd953c36
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -26,13 +26,9 @@ fi
DRIVERS="$STORAGE/drivers.iso"
[ ! -f "$DRIVERS" ] && DRIVERS="/run/drivers.iso"

if [ -f "$DRIVERS" ]; then
if [ -f "$DRIVERS" ] && [[ "${MACHINE,,}" != "pc-q35-2"* ]]; then
  DISK_OPTS="$DISK_OPTS -drive id=cdrom1,media=cdrom,if=none,format=raw,readonly=on,file=$DRIVERS"
  if [[ "${MACHINE,,}" != "pc-q35-2"* ]]; then
  DISK_OPTS="$DISK_OPTS -device ide-cd,drive=cdrom1"
  else
    DISK_OPTS="$DISK_OPTS -device usb-storage,bus=ehci.0,drive=cdrom1"
  fi
fi

fmt2ext() {