Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
1300f7f4
Commit
1300f7f4
authored
Jan 10, 2023
by
longpanda
Browse files
Fix the VHD(x) boot issue introduced in 1.0.87.
parent
d9182dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_vhd.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_vhd.c
+4
-0
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_vhd.c
View file @
1300f7f4
...
...
@@ -262,6 +262,10 @@ static int ventoy_vhd_patch_disk(const char *vhdpath, ventoy_patch_vhd *patch1,
}
else
{
if
(
offset
==
0
)
{
offset
=
gpt
->
MBR
.
PartTbl
[
partIndex
].
StartSectorId
;
}
offset
*=
512
;
debug
(
"MBR disk signature: %02x%02x%02x%02x Part(%d) offset:%llu
\n
"
,
gpt
->
MBR
.
BootCode
[
0x1b8
+
0
],
gpt
->
MBR
.
BootCode
[
0x1b8
+
1
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment