Skip to content

Commit

Permalink
feat: Use automatic CD-ROM interface for legacy boot (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 20, 2024
1 parent 02aad63 commit 35cd8b1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35cd8b1

Please sign in to comment.