mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Only connect a CD/DVD to macOS when an ISO image is presented
This commit is contained in:
parent
f20fe5f514
commit
7e04f471bc
1 changed files with 4 additions and 2 deletions
2
quickemu
2
quickemu
|
@ -500,8 +500,10 @@ function vm_boot() {
|
|||
args+=(-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}"
|
||||
-device virtio-blk-pci,drive=SystemDisk,scsi=off ${STATUS_QUO})
|
||||
|
||||
if [ -n "${iso}" ]; then
|
||||
# shellcheck disable=SC2054
|
||||
args+=(-drive media=cdrom,index=0,file="${iso}")
|
||||
fi
|
||||
else
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
args+=(-drive media=cdrom,index=0,file="${iso}"
|
||||
|
|
Loading…
Reference in a new issue