mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-17 00:01:27 +00:00
fix: Map cdrom to /dev/null (#388)
This commit is contained in:
+3
-3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user