]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
fix Parabola systemd-boot loader (#473)
authorDavid P <megver83@parabola.nu>
Mon, 14 Sep 2020 01:56:12 +0000 (01:56 +0000)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 01:56:12 +0000 (09:56 +0800)
INSTALL/grub/grub.cfg

index a7a0caeaa7647f088bcaea21d693385fa4107dc5..776a7d57c5fbe0000cad529da30594332c5268ba 100644 (file)
@@ -493,6 +493,12 @@ function uefi_linux_menu_func {
                 elif [ -f (loop)/boot/initramfs_x86_64.img ]; then
                     vt_add_replace_file $vtindex "boot\\initramfs_x86_64.img"
                 fi
+            elif [ -d (loop)/parabola ]; then
+                if [ -f (loop)/parabola/boot/x86_64/parabola.img ]; then
+                    vt_add_replace_file $vtindex "EFI\\parabola\\parabola.img"
+                elif [ -f (loop)/boot/initramfs_x86_64.img ]; then
+                    vt_add_replace_file $vtindex "boot\\initramfs_x86_64.img"
+                fi
             elif [ -f (loop)/EFI/BOOT/initrd.gz ]; then
                 vt_add_replace_file $vtindex "EFI\\BOOT\\initrd.gz"
             elif [ -f (loop)/loader/entries/thinstation.conf ]; then
@@ -508,7 +514,7 @@ function uefi_linux_menu_func {
             fi
         elif [ -d (loop)/EFI/BOOT/entries ]; then
             if [ -f (loop)/parabola/boot/x86_64/parabolaiso.img ]; then
-                vt_add_replace_file 0 "EFI\\parabolaiso\\parabolaiso.img"            
+                vt_add_replace_file 0 "EFI\\parabolaiso\\parabolaiso.img"
             fi
         elif [ -e (loop)/syslinux/alt0/full.cz ]; then
             vt_add_replace_file 0 "EFI\\BOOT\\full.cz"