From b915d8d797aa2482e6e90e96aa658f66afcc0c55 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 21 Oct 2021 00:19:27 +0100 Subject: [PATCH] Only display MSR alerts when required --- quickemu | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/quickemu b/quickemu index 1f59c00..bd2a640 100755 --- a/quickemu +++ b/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. iso="" 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 # Has the status quo been requested? @@ -574,8 +581,6 @@ function vm_boot() { *) DISPLAY_DEVICE="virtio-vga";; esac elif [ "${guest_os}" == "macos" ]; then - # offer ignore_msrs if not set - ignore_msrs_alert # Tweak video device based on the guest macOS release. # Displays in System Preferences can be used to select a resolution if: # - qxl is used on Big Sur and Catalina @@ -586,8 +591,6 @@ function vm_boot() { *) DISPLAY_DEVICE="VGA";; esac elif [ "${guest_os}" == "windows" ]; then - # offer ignore_msrs if not set - ignore_msrs_alert DISPLAY_DEVICE="qxl-vga" else DISPLAY_DEVICE="qxl-vga"