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 ;;
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