fix: Map cdrom to /dev/null (#388)
This commit is contained in:
parent
c568b5cfe4
commit
a401653714
1 changed files with 3 additions and 3 deletions
|
@ -16,10 +16,10 @@ DISK_OPTS="$DISK_OPTS -device scsi-cd,bus=scsi0.0,drive=cdrom0,bootindex=$BOOT_I
|
||||||
|
|
||||||
BOOT="$STORAGE/$BASE"
|
BOOT="$STORAGE/$BASE"
|
||||||
|
|
||||||
if [ ! -f "$BOOT" ]; then
|
if [ -f "$BOOT" ]; then
|
||||||
DISK_OPTS="$DISK_OPTS -drive id=cdrom0,if=none,format=raw,readonly=on"
|
|
||||||
else
|
|
||||||
DISK_OPTS="$DISK_OPTS -drive id=cdrom0,if=none,format=raw,readonly=on,file=$BOOT"
|
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
|
fi
|
||||||
|
|
||||||
DRIVERS="$STORAGE/drivers.iso"
|
DRIVERS="$STORAGE/drivers.iso"
|
||||||
|
|
Loading…
Reference in a new issue