fix: Remove cdrom for pc-q35-2.x (#419)
This commit is contained in:
parent
cd953c3650
commit
8834b0c801
1 changed files with 2 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue