mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Only display MSR alerts when required
This commit is contained in:
		
							parent
							
								
									a94541c5aa
								
							
						
					
					
						commit
						b915d8d797
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										11
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -499,6 +499,13 @@ function vm_boot() { | ||||||
|     # If there is a disk image that appears to be used do not boot from installation media. |     # If there is a disk image that appears to be used do not boot from installation media. | ||||||
|     iso="" |     iso="" | ||||||
|     img="" |     img="" | ||||||
|  |   else | ||||||
|  |     if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ]; then | ||||||
|  |       # Display MSRs alert if the disk appears unused and guest is macOS or Windows | ||||||
|  |       # Assume that a "used" disk has a working install, therefore no alerts are | ||||||
|  |       # required. | ||||||
|  |       ignore_msrs_alert | ||||||
|  |     fi | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   # Has the status quo been requested? |   # Has the status quo been requested? | ||||||
|  | @ -574,8 +581,6 @@ function vm_boot() { | ||||||
|       *) DISPLAY_DEVICE="virtio-vga";; |       *) DISPLAY_DEVICE="virtio-vga";; | ||||||
|     esac |     esac | ||||||
|   elif [ "${guest_os}" == "macos" ]; then |   elif [ "${guest_os}" == "macos" ]; then | ||||||
|     # offer ignore_msrs if not set |  | ||||||
|     ignore_msrs_alert |  | ||||||
|     # Tweak video device based on the guest macOS release. |     # Tweak video device based on the guest macOS release. | ||||||
|     # Displays in System Preferences can be used to select a resolution if: |     # Displays in System Preferences can be used to select a resolution if: | ||||||
|     #  - qxl is used on Big Sur and Catalina |     #  - qxl is used on Big Sur and Catalina | ||||||
|  | @ -586,8 +591,6 @@ function vm_boot() { | ||||||
|       *) DISPLAY_DEVICE="VGA";; |       *) DISPLAY_DEVICE="VGA";; | ||||||
|     esac |     esac | ||||||
|   elif [ "${guest_os}" == "windows" ]; then |   elif [ "${guest_os}" == "windows" ]; then | ||||||
|     # offer ignore_msrs if not set |  | ||||||
|     ignore_msrs_alert |  | ||||||
|     DISPLAY_DEVICE="qxl-vga" |     DISPLAY_DEVICE="qxl-vga" | ||||||
|   else |   else | ||||||
|     DISPLAY_DEVICE="qxl-vga" |     DISPLAY_DEVICE="qxl-vga" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue