localboot.cfg 1.63 KB
Newer Older
longpanda's avatar
longpanda committed
1
2

if [ "$grub_platform" = "pc" ]; then
longpanda's avatar
longpanda committed
3
    menuentry 'Search and boot Windows' --class=boot_windows {    
longpanda's avatar
longpanda committed
4
5
        if search -n -s -f /bootmgr; then
            ntldr /bootmgr
longpanda's avatar
longpanda committed
6
7
        elif search -n -s -f /NTLDR; then
            ntldr /NTLDR
longpanda's avatar
longpanda committed
8
9
10
11
12
        else
            echo "Windows NOT found ..."
        fi        
    }
    
longpanda's avatar
longpanda committed
13
14
15
16
17
18
19
20
21
    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 {
longpanda's avatar
longpanda committed
22
23
24
25
26
        set root=(hd0,1)
        chainloader +1
        boot
    }
    
longpanda's avatar
longpanda committed
27
    menuentry 'Boot the 2nd local disk' --class=boot_disk {
longpanda's avatar
longpanda committed
28
29
30
31
32
        set root=(hd1,1)
        chainloader +1
        boot
    }
    
longpanda's avatar
longpanda committed
33
    menuentry 'Boot the 3rd local disk' --class=boot_disk {
longpanda's avatar
longpanda committed
34
35
36
37
38
39
40
        set root=(hd2,1)
        chainloader +1
        boot
    }
    
else

longpanda's avatar
longpanda committed
41
    menuentry 'Search and boot Windows' --class=boot_windows {    
longpanda's avatar
longpanda committed
42
43
44
45
46
47
48
49
50
        if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
            terminal_output  console
            chainloader /EFI/Microsoft/Boot/bootmgfw.efi
            boot
        else
            echo "Windows NOT found ..."
        fi        
    }
    
longpanda's avatar
longpanda committed
51
    menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {    
longpanda's avatar
longpanda committed
52
53
54
55
56
57
58
59
60
61
62
        if search -n -s -f /efi/boot/bootx64.efi; then
            terminal_output  console
            chainloader /efi/boot/bootx64.efi
            boot
        else
            echo "BOOTX64.EFI NOT found ..."
        fi        
    }

fi

longpanda's avatar
longpanda committed
63
menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
64
65
    echo 'Return ...'
}