]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Don't force to use max resolution for VMware/VirtualBox. (#3140)
authorlongpanda <admin@ventoy.net>
Fri, 28 Feb 2025 06:49:40 +0000 (14:49 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 28 Feb 2025 06:49:40 +0000 (14:49 +0800)
INSTALL/grub/grub.cfg

index f1a4df2806d4e0c3deda59638eb4e74234ae53dc..5b1e300740b0601ae4ee7788e0079e1de510eaeb 100644 (file)
@@ -35,6 +35,14 @@ function ventoy_debug_pause {
 
 
 function ventoy_max_resolution {
+    #Skip this for VM
+    smbios -t 1 -s 0x05 --set=system_product;
+    for vtPdt in "VMware"  "VirtualBox"; then
+        if vt_str_casebegin "$system_product"  "$vtPdt"; then
+            return
+        fi
+    fi
+
     vt_enum_video_mode
     vt_get_video_mode 0 vtCurMode
     terminal_output console