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

feat: Use automatic CD-ROM interface for legacy boot (#610)

parent 02aad630
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -548,14 +548,13 @@ case "${DISK_TYPE,,}" in
  * ) error "Invalid DISK_TYPE specified, value \"$DISK_TYPE\" is not recognized!" && exit 80 ;;
esac

case "${MACHINE,,}" in
  "virt" )
    FALLBACK="usb" ;;
  "pc-q35-2"* | "pc-i440fx-2"* )
    FALLBACK="auto" ;;
  * )
    FALLBACK="ide" ;;
esac
if [[ "${MACHINE,,}" != "virt" ]]; then
  FALLBACK="ide"
else
  FALLBACK="usb"
fi
  
[[ "${BOOT_MODE:-}" == "windows_legacy" ]] && FALLBACK="auto"

if [ -z "${MEDIA_TYPE:-}" ]; then
  if [[ "${BOOT_MODE:-}" != "windows"* ]]; then