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
f3e267a0
Commit
f3e267a0
authored
Oct 19, 2021
by
longpanda
Browse files
support ALT rescue
parent
7c1370dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
+6
-0
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+2
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
View file @
f3e267a0
...
@@ -978,6 +978,12 @@ static grub_err_t ventoy_linux_locate_initrd(int filt, int *filtcnt)
...
@@ -978,6 +978,12 @@ static grub_err_t ventoy_linux_locate_initrd(int filt, int *filtcnt)
}
}
}
}
/* skip hdt.img */
if
(
file
->
size
<=
VTOY_SIZE_1MB
&&
grub_strcmp
(
node
->
name
,
"/boot/hdt.img"
)
==
0
)
{
continue
;
}
if
(
grub_strcmp
(
file
->
fs
->
name
,
"iso9660"
)
==
0
)
if
(
grub_strcmp
(
file
->
fs
->
name
,
"iso9660"
)
==
0
)
{
{
node
->
iso_type
=
0
;
node
->
iso_type
=
0
;
...
...
INSTALL/grub/grub.cfg
View file @
f3e267a0
...
@@ -247,7 +247,8 @@ function distro_specify_initrd_file {
...
@@ -247,7 +247,8 @@ function distro_specify_initrd_file {
vt_linux_specify_initrd_file /boot/initramfs-x86_64.img
vt_linux_specify_initrd_file /boot/initramfs-x86_64.img
elif [ -f (loop)/boot/isolinux/initramfs_data64.cpio.gz ]; then
elif [ -f (loop)/boot/isolinux/initramfs_data64.cpio.gz ]; then
vt_linux_specify_initrd_file /boot/isolinux/initramfs_data64.cpio.gz
vt_linux_specify_initrd_file /boot/isolinux/initramfs_data64.cpio.gz
elif [ -f (loop)/boot/initrd.img ]; then
vt_linux_specify_initrd_file /boot/initrd.img
fi
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