]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
support ALT rescue
authorlongpanda <admin@ventoy.net>
Tue, 19 Oct 2021 15:07:27 +0000 (23:07 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 19 Oct 2021 15:07:27 +0000 (23:07 +0800)
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_linux.c
INSTALL/grub/grub.cfg

index 560355ab745aa5aaddd9fd262d4bcd2bea08975d..98296f7657b9b1c537d31b9b940ba10cd8275202 100644 (file)
@@ -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;
         if (grub_strcmp(file->fs->name, "iso9660") == 0)
         {
             node->iso_type = 0;
index 103b4c511603393d00232d84cb35bef5bec33c70..b77b125568b8371059be2129bf9aec184fad25e7 100644 (file)
@@ -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
         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
     
         
     fi