mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add efi_vars() for copying EFI variable store templates to the VM dir
This commit is contained in:
		
							parent
							
								
									b8d6b02796
								
							
						
					
					
						commit
						aeb2a64720
					
				
					 1 changed files with 16 additions and 0 deletions
				
			
		
							
								
								
									
										16
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -175,6 +175,22 @@ function check_cpu_flag() { | |||
|   fi | ||||
| } | ||||
| 
 | ||||
| function efi_vars() { | ||||
|   local VARS_IN="" | ||||
|   local VARS_OUT="" | ||||
|   VARS_IN="${1}" | ||||
|   VARS_OUT="${2}" | ||||
| 
 | ||||
|   if [ ! -e "${VARS_OUT}" ]; then | ||||
|     if [ -e "${VARS_IN}" ]; then | ||||
|       cp "${VARS_IN}" "${VARS_OUT}" | ||||
|     else | ||||
|       echo "ERROR! ${VARS_IN} was not found. Please install edk2." | ||||
|       exit 1 | ||||
|     fi | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| function vm_boot() { | ||||
|   local BALLOON="-device virtio-balloon" | ||||
|   local CPU="" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue