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
092cff84
Commit
092cff84
authored
Jun 25, 2021
by
longpanda
Browse files
Support some floppy image in Memdisk mode
parent
b347c1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+16
-0
No files found.
INSTALL/grub/grub.cfg
View file @
092cff84
...
...
@@ -1704,6 +1704,15 @@ function img_unsupport_tip {
read vtInputKey
}
function legacy_img_memdisk {
linux16 $vtoy_path/memdisk
echo "Loading img file to memory ..."
initrd16 "${1}${2}"
ventoy_cli_console
boot
}
function img_common_menuentry {
set ventoy_compatible=YES
set ventoy_busybox_ver=32
...
...
@@ -1718,6 +1727,13 @@ function img_common_menuentry {
return
fi
if [ "$grub_platform" = "pc" ]; then
if vt_check_mode 0; then
legacy_img_memdisk $vtoy_iso_part "$vt_chosen_path"
return
fi
fi
if [ -d (vtimghd)/ ]; then
loopback -d vtimghd
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