Skip to content

Commit 6034b25

Browse files
committed
Don't force to use max resolution for VMware/VirtualBox. (#3140)
1 parent c5fd64d commit 6034b25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: INSTALL/grub/grub.cfg

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ function ventoy_debug_pause {
3535

3636

3737
function ventoy_max_resolution {
38+
#Skip this for VM
39+
smbios -t 1 -s 0x05 --set=system_product;
40+
for vtPdt in "VMware" "VirtualBox"; then
41+
if vt_str_casebegin "$system_product" "$vtPdt"; then
42+
return
43+
fi
44+
fi
45+
3846
vt_enum_video_mode
3947
vt_get_video_mode 0 vtCurMode
4048
terminal_output console

0 commit comments

Comments
 (0)