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
				
			
		
							
								
								
									
										6
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -500,8 +500,10 @@ function vm_boot() { | ||||||
|     args+=(-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" |     args+=(-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" | ||||||
|             -device virtio-blk-pci,drive=SystemDisk,scsi=off ${STATUS_QUO}) |             -device virtio-blk-pci,drive=SystemDisk,scsi=off ${STATUS_QUO}) | ||||||
| 
 | 
 | ||||||
|     # shellcheck disable=SC2054 |     if [ -n "${iso}" ]; then | ||||||
|     args+=(-drive media=cdrom,index=0,file="${iso}") |       # shellcheck disable=SC2054 | ||||||
|  |       args+=(-drive media=cdrom,index=0,file="${iso}") | ||||||
|  |     fi | ||||||
|   else |   else | ||||||
|     # shellcheck disable=SC2054,SC2206 |     # shellcheck disable=SC2054,SC2206 | ||||||
|     args+=(-drive media=cdrom,index=0,file="${iso}" |     args+=(-drive media=cdrom,index=0,file="${iso}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue