Skip to content

Commit

Permalink
feat: Enable CD-ROM on legacy machines (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored May 16, 2024
1 parent e906755 commit 308450f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DRIVERS="/drivers.iso"
[ ! -f "$DRIVERS" ] || [ ! -s "$DRIVERS" ] && DRIVERS="$STORAGE/drivers.iso"
[ ! -f "$DRIVERS" ] || [ ! -s "$DRIVERS" ] && DRIVERS="/run/drivers.iso"

if [ -f "$DRIVERS" ] && [[ "${MACHINE,,}" != "pc-q35-2"* ]]; then
if [ -f "$DRIVERS" ]; then
DISK_OPTS="$DISK_OPTS -drive id=cdrom1,media=cdrom,if=none,format=raw,readonly=on,file=$DRIVERS"
DISK_OPTS="$DISK_OPTS -device ide-cd,drive=cdrom1"
fi
Expand Down

0 comments on commit 308450f

Please sign in to comment.