Skip to content

Commit

Permalink
fix: Remove cdrom for pc-q35-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 1, 2024
1 parent cd953c3 commit 503cd3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 503cd3b

Please sign in to comment.