fix: Remove cdrom for pc-q35-2.x (#419)

This commit is contained in:
Kroese 2024-02-01 14:00:51 +01:00 committed by GitHub
parent cd953c3650
commit 8834b0c801
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,13 +26,9 @@ fi
DRIVERS="$STORAGE/drivers.iso"
[ ! -f "$DRIVERS" ] && DRIVERS="/run/drivers.iso"
if [ -f "$DRIVERS" ]; then
if [ -f "$DRIVERS" ] && [[ "${MACHINE,,}" != "pc-q35-2"* ]]; 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 usb-storage,bus=ehci.0,drive=cdrom1"
fi
fi
fmt2ext() {