mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-01-14 00:05:05 -05:00
support ALT rescue
This commit is contained in:
parent
7c1370dcb0
commit
f3e267a09e
@ -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;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user