mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Replace hardcoded paths to qemu-virgil with a variable
This commit is contained in:
		
							parent
							
								
									dbd0885f82
								
							
						
					
					
						commit
						ce5aecd33d
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -99,11 +99,11 @@ function vm_boot() { | ||||||
|   echo " - QEMU:     ${QEMU} v${QEMU_VER}" |   echo " - QEMU:     ${QEMU} v${QEMU_VER}" | ||||||
| 
 | 
 | ||||||
|   if [ ${ENABLE_EFI} -eq 1 ]; then |   if [ ${ENABLE_EFI} -eq 1 ]; then | ||||||
|     if [ -e /snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd ] ; then |     if [ -e "${VIRGIL_PATH}/usr/share/qemu/edk2-x86_64-code.fd" ] ; then | ||||||
|       if [ ! -e ${VMDIR}/${VMNAME}-vars.fd ]; then |       if [ ! -e "${VMDIR}/${VMNAME}-vars.fd" ]; then | ||||||
|         cp /snap/qemu-virgil/current/usr/share/qemu/edk2-i386-vars.fd ${VMDIR}/${VMNAME}-vars.fd |         cp "${VIRGIL_PATH}/usr/share/qemu/edk2-i386-vars.fd" "${VMDIR}/${VMNAME}-vars.fd" | ||||||
|       fi |       fi | ||||||
|       BIOS="-drive if=pflash,format=raw,readonly,file=/snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd -drive if=pflash,format=raw,file=${VMDIR}/${VMNAME}-vars.fd" |       BIOS="-drive if=pflash,format=raw,readonly,file=${VIRGIL_PATH}/usr/share/qemu/edk2-x86_64-code.fd -drive if=pflash,format=raw,file=${VMDIR}/${VMNAME}-vars.fd" | ||||||
|     else |     else | ||||||
|       echo " - EFI:      Booting requested but no EFI firmware found." |       echo " - EFI:      Booting requested but no EFI firmware found." | ||||||
|       echo "             Booting from Legacy BIOS." |       echo "             Booting from Legacy BIOS." | ||||||
|  | @ -250,7 +250,7 @@ function vm_boot() { | ||||||
|   local NET="user,hostname=${VMNAME}" |   local NET="user,hostname=${VMNAME}" | ||||||
| 
 | 
 | ||||||
|   # If smbd is available, export $HOME to the guest via samba |   # If smbd is available, export $HOME to the guest via samba | ||||||
|   if [ -e /snap/qemu-virgil/current/usr/sbin/smbd ]; then |   if [ -e "${VIRGIL_PATH}/usr/sbin/smbd" ]; then | ||||||
|       NET="${NET},smb=${HOME}" |       NET="${NET},smb=${HOME}" | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue