From 6034b25cbaa5b35679673c05142aa8e425ac7b95 Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 28 Feb 2025 14:49:40 +0800 Subject: [PATCH] Don't force to use max resolution for VMware/VirtualBox. (#3140) --- INSTALL/grub/grub.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index f1a4df28..5b1e3007 100644 --- a/INSTALL/grub/grub.cfg +++ b/INSTALL/grub/grub.cfg @@ -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