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

This commit is contained in:
Kroese 2024-11-10 11:19:20 +01:00 committed by GitHub
parent e6af7e9782
commit 52c89503cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -548,14 +548,13 @@ case "${DISK_TYPE,,}" in
* ) error "Invalid DISK_TYPE specified, value \"$DISK_TYPE\" is not recognized!" && exit 80 ;; * ) error "Invalid DISK_TYPE specified, value \"$DISK_TYPE\" is not recognized!" && exit 80 ;;
esac esac
case "${MACHINE,,}" in if [[ "${MACHINE,,}" != "virt" ]]; then
"virt" ) FALLBACK="ide"
FALLBACK="usb" ;; else
"pc-q35-2"* | "pc-i440fx-2"* ) FALLBACK="usb"
FALLBACK="auto" ;; fi
* )
FALLBACK="ide" ;; [[ "${BOOT_MODE:-}" == "windows_legacy" ]] && FALLBACK="auto"
esac
if [ -z "${MEDIA_TYPE:-}" ]; then if [ -z "${MEDIA_TYPE:-}" ]; then
if [[ "${BOOT_MODE:-}" != "windows"* ]]; then if [[ "${BOOT_MODE:-}" != "windows"* ]]; then