From 2d01837f151f87ebb24240cab696ab70ff48ae06 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 26 Jan 2024 01:25:44 +0100 Subject: [PATCH] fix: Map cdrom to /dev/null --- src/disk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/disk.sh b/src/disk.sh index 78171977..742dd7c3 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -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"