mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Catch missing disk configuration early
This commit is contained in:
		
							parent
							
								
									31c02550d3
								
							
						
					
					
						commit
						d48dc74e95
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										11
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -54,12 +54,7 @@ function vm_boot() { | ||||||
|   echo "Starting ${VM}" |   echo "Starting ${VM}" | ||||||
|   echo " - QEMU:     ${QEMU} v${QEMU_VER}" |   echo " - QEMU:     ${QEMU} v${QEMU_VER}" | ||||||
| 
 | 
 | ||||||
|   if [ -z "${disk_img}" ]; then |   readonly disk_min_size=$((197632 * 8)) | ||||||
|     echo "ERROR! No disk_img defined." |  | ||||||
|     exit 1 |  | ||||||
|   fi |  | ||||||
| 
 |  | ||||||
|   readonly disk_min_size=395264 |  | ||||||
|   if [ -z "${disk}" ]; then |   if [ -z "${disk}" ]; then | ||||||
|     disk="64G" |     disk="64G" | ||||||
|   fi |   fi | ||||||
|  | @ -240,6 +235,10 @@ fi | ||||||
| 
 | 
 | ||||||
| if [ -n "${VM}" ] || [ -e "${VM}" ]; then | if [ -n "${VM}" ] || [ -e "${VM}" ]; then | ||||||
|   source "${VM}" |   source "${VM}" | ||||||
|  |   if [ -z "${disk_img}" ]; then | ||||||
|  |     echo "ERROR! No disk_img defined." | ||||||
|  |     exit 1 | ||||||
|  |   fi | ||||||
| else | else | ||||||
|   echo "ERROR! Virtual machine configuration not found." |   echo "ERROR! Virtual machine configuration not found." | ||||||
|   usage |   usage | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue