From: longpanda Date: Tue, 19 Oct 2021 15:07:27 +0000 (+0800) Subject: support ALT rescue X-Git-Tag: v1.0.56~13 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/f3e267a09e22f9f2db70a04b81a30fefe0824bbe?ds=inline support ALT rescue --- diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c index 560355a..98296f7 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c @@ -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) { node->iso_type = 0; diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index 103b4c5..b77b125 100644 --- a/INSTALL/grub/grub.cfg +++ b/INSTALL/grub/grub.cfg @@ -247,7 +247,8 @@ function distro_specify_initrd_file { vt_linux_specify_initrd_file /boot/initramfs-x86_64.img elif [ -f (loop)/boot/isolinux/initramfs_data64.cpio.gz ]; then 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