]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/grub/localboot.cfg
Update ventoy_pack.sh
[Ventoy.git] / INSTALL / grub / localboot.cfg
index e9893e46dff9bfa45a8770ebf3e06773e157c5a7..0afb344603cd3c2dc89b873aec4d8b37b94d6fe7 100644 (file)
@@ -1,6 +1,6 @@
 
 if [ "$grub_platform" = "pc" ]; then
-    menuentry 'Search and boot Windows' {    
+    menuentry 'Search and boot Windows' --class=boot_windows {    
         if search -n -s -f /bootmgr; then
             ntldr /bootmgr
         elif search -n -s -f /ntldr; then
@@ -10,19 +10,27 @@ if [ "$grub_platform" = "pc" ]; then
         fi        
     }
     
-    menuentry 'Boot the 1st local disk' {
+    menuentry 'Search and boot Grub4dos' --class=boot_g4d {
+        if search -n -s -f /grldr; then
+            ntldr /grldr
+        else
+            echo "Grub4dos NOT found ..."
+        fi        
+    }
+    
+    menuentry 'Boot the 1st local disk' --class=boot_disk {
         set root=(hd0,1)
         chainloader +1
         boot
     }
     
-    menuentry 'Boot the 2nd local disk' {
+    menuentry 'Boot the 2nd local disk' --class=boot_disk {
         set root=(hd1,1)
         chainloader +1
         boot
     }
     
-    menuentry 'Boot the 3rd local disk' {
+    menuentry 'Boot the 3rd local disk' --class=boot_disk {
         set root=(hd2,1)
         chainloader +1
         boot
@@ -30,7 +38,7 @@ if [ "$grub_platform" = "pc" ]; then
     
 else
 
-    menuentry 'Search and boot Windows' {    
+    menuentry 'Search and boot Windows' --class=boot_windows {    
         if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
             terminal_output  console
             chainloader /EFI/Microsoft/Boot/bootmgfw.efi
@@ -40,7 +48,7 @@ else
         fi        
     }
     
-    menuentry 'Search and boot BOOTX64.EFI' {    
+    menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {    
         if search -n -s -f /efi/boot/bootx64.efi; then
             terminal_output  console
             chainloader /efi/boot/bootx64.efi
@@ -52,6 +60,6 @@ else
 
 fi
 
-menuentry 'Return to menu [Esc]' VTOY_RET {
+menuentry 'Return to menu [Esc]' --class=vtoyret VTOY_RET {
     echo 'Return ...'
 }