Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
7b70a527
Commit
7b70a527
authored
May 31, 2022
by
longpanda
Browse files
Support programs loading for DLC Boot PE. (#1647)
parent
f8b1f983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+20
-5
No files found.
INSTALL/grub/grub.cfg
View file @
7b70a527
...
@@ -111,12 +111,18 @@ function ventoy_show_help {
...
@@ -111,12 +111,18 @@ function ventoy_show_help {
function get_os_type {
function get_os_type {
set vtoy_os=Linux
set vtoy_os=Linux
for file in "efi/microsoft/boot/bcd" "sources/boot.wim" "boot/bcd" "bootmgr.efi" "boot/etfsboot.com" ; do
if vt_str_begin "$vt_volume_id" "DLC Boot"; then
if vt_file_exist_nocase (loop)/$file; then
if [ -f (loop)/DLCBoot.exe ]; then
set vtoy_os=Windows
set vtoy_os=Windows
break
fi
fi
done
else
for file in "efi/microsoft/boot/bcd" "sources/boot.wim" "boot/bcd" "bootmgr.efi" "boot/etfsboot.com" ; do
if vt_file_exist_nocase (loop)/$file; then
set vtoy_os=Windows
break
fi
done
fi
if [ "$vtoy_os" = "Linux" ]; then
if [ "$vtoy_os" = "Linux" ]; then
if vt_strstr "$vt_system_id" "FreeBSD"; then
if vt_strstr "$vt_system_id" "FreeBSD"; then
...
@@ -206,6 +212,15 @@ function distro_specify_wim_patch_phase2 {
...
@@ -206,6 +212,15 @@ function distro_specify_wim_patch_phase2 {
if [ -f (loop)/boot/boot.wim ]; then
if [ -f (loop)/boot/boot.wim ]; then
vt_windows_collect_wim_patch wim /boot/boot.wim
vt_windows_collect_wim_patch wim /boot/boot.wim
fi
fi
if vt_str_begin "$vt_volume_id" "DLC Boot"; then
for vwfile in "/DLC1/WinPE/W11x64.wim" "/DLC1/WinPE/W10x64.wim" "/DLC1/WinPE/W10x86.wim"; do
if [ -f (loop)/$vwfile ]; then
vt_windows_collect_wim_patch wim $vwfile
fi
done
fi
}
}
...
...
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