]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Only for VirtualBox.
authorlongpanda <admin@ventoy.net>
Fri, 28 Feb 2025 06:58:36 +0000 (14:58 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 28 Feb 2025 06:58:36 +0000 (14:58 +0800)
INSTALL/grub/grub.cfg

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