]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
add support for latest blackarch distro (issue #654)
authorlongpanda <admin@ventoy.net>
Thu, 17 Dec 2020 08:40:53 +0000 (16:40 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 17 Dec 2020 08:40:53 +0000 (16:40 +0800)
INSTALL/grub/grub.cfg

index 8f189fe5cfac1f0ca583620c6d8a72cbb74f76f1..03058f1d463246a09607d205848ea0401c0c531e 100644 (file)
@@ -270,6 +270,8 @@ function distro_specify_initrd_file_phase2 {
         fi
     elif [ -f (loop)/blackarch/boot/x86_64/archiso.img ]; then 
         vt_linux_specify_initrd_file /blackarch/boot/x86_64/archiso.img
+    elif [ -f (loop)/blackarch/boot/x86_64/initramfs-linux.img ]; then 
+        vt_linux_specify_initrd_file /blackarch/boot/x86_64/initramfs-linux.img
         
     elif [ -f (loop)/install.amd/initrd.gz ]; then
         vt_linux_specify_initrd_file /live/initrd2.img
@@ -548,6 +550,8 @@ function uefi_linux_menu_func {
             elif [ -d (loop)/blackarch ]; then
                 if [ -f (loop)/blackarch/boot/x86_64/archiso.img ]; then
                     vt_add_replace_file $vtindex "EFI\\archiso\\archiso.img"
+                elif [ -f (loop)/blackarch/boot/x86_64/initramfs-linux.img ]; then
+                    vt_add_replace_file $vtindex "blackarch\\boot\\x86_64\\initramfs-linux.img"
                 fi
             elif [ -d (loop)/anarchy ]; then
                 if [ -f (loop)/anarchy/boot/x86_64/initramfs-linux.img ]; then