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

feat: Add CD-ROM for legacy machines (#507)

parent 308450f8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -28,7 +28,11 @@ DRIVERS="/drivers.iso"

if [ -f "$DRIVERS" ]; 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 ide-cd,bus=ide.1,drive=cdrom1"
  fi
fi

fmt2ext() {