From 503cd3b18e72a80013694efc8887f807b33fb77b Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 1 Feb 2024 13:58:39 +0100 Subject: [PATCH] fix: Remove cdrom for pc-q35-2.x --- src/disk.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/disk.sh b/src/disk.sh index 61c07ef3..8d362394 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -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 + DISK_OPTS="$DISK_OPTS -device ide-cd,drive=cdrom1" fi fmt2ext() {