Skip to content

Commit

Permalink
fix: Map cdrom to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 26, 2024
1 parent c568b5c commit 2d01837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ DISK_OPTS="$DISK_OPTS -device scsi-cd,bus=scsi0.0,drive=cdrom0,bootindex=$BOOT_I

BOOT="$STORAGE/$BASE"

if [ ! -f "$BOOT" ]; then
DISK_OPTS="$DISK_OPTS -drive id=cdrom0,if=none,format=raw,readonly=on"
else
if [ -f "$BOOT" ]; then
DISK_OPTS="$DISK_OPTS -drive id=cdrom0,if=none,format=raw,readonly=on,file=$BOOT"
else
DISK_OPTS="$DISK_OPTS -drive id=cdrom0,if=none,format=raw,readonly=on,file=/dev/null"
fi

DRIVERS="$STORAGE/drivers.iso"
Expand Down

0 comments on commit 2d01837

Please sign in to comment.