source: server/tftpboot/grub/templates/00unknown @ 23e53a5

918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 23e53a5 was f6ab049, checked in by Irina Gómez <irinagomez@…>, 5 years ago

#802 #888 PXE default template for UEFI shows a menu with operating system loaders. Searchs grub, rEFInd, operating system restored with OpenGnsys, windows and Ubuntu.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1##NO-TOCAR-ESTA-LINEA Sin-designar
2#
3# Arranque por defecto en OpenGnsys
4# Busca cargadores existentes por orden de prioridad y
5#    muestra menú con las opciones
6# Si no existe ningún cargador de arranque muestra mensaje de error.
7set timeout=30
8
9set detectado='no'
10# Compruebo si existen distintos cargadores.
11echo "Searching Grub"
12search --file --set rootGrub /EFI/grub/Boot/grubx64.efi
13if [ "$rootGrub" != "" ]; then
14    set detectado='si'
15    menuentry "Grub" {
16        root="$rootGrub"
17        chainloader /EFI/grub/Boot/grubx64.efi
18}
19fi
20
21echo "Searching rEFInd"
22search --file --set rootRefind /EFI/refind/shimx64.efi.signed
23if [ "$rootRefind" != "" ]; then
24    menuentry "rEFInd" {
25        root="$rootRefind"
26        chainloader /EFI/refind/shimx64.efi.signed
27}
28fi
29
30echo "Searching Part-01-02"
31search --file --set rootP2 /EFI/Part-01-02/Boot/ogloader.efi
32if [ "$rootP2" != "" ]; then
33    set detectado='si'
34    menuentry "Part-01-02" {
35        root="$rootP2"
36        chainloader /EFI/Part-01-02/Boot/ogloader.efi
37    }
38fi
39
40echo "Searching Part-01-03"
41search --file --set rootP3 /EFI/Part-01-03/Boot/ogloader.efi
42if [ "$rootP3" != "" ]; then
43    set detectado='si'
44    menuentry "Part-01-03" {
45        root="$rootP3"
46        chainloader /EFI/Part-01-03/Boot/ogloader.efi
47    }
48fi
49
50echo "Searching Microsoft"
51search --file --set rootMS /EFI/Microsoft/Boot/bootmgfw.efi
52if [ "$rootMS" != "" ]; then
53    set detectado='si'
54    menuentry "Microsoft" {
55        root="$rootMS"
56        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
57    }
58fi
59
60echo "Searching Ubuntu"
61search --file --set rootUb /EFI/ubuntu/grubx64.efi
62if [ "$rootUb" != "" ]; then
63    set detectado='si'
64    menuentry "Ubuntu"
65        root="$rootUb"
66        chainloader /EFI/ubuntu/grubx64.efi
67    }
68fi
69
70
71# Si no hay ningún sistema operativo muestro mensaje.
72if [ $detectado == 'no' ]; then
73    menuentry "OpenGnsys no ha detectado ningún sistema operativo" {
74        # para evitar mensajes de error.
75        set root="(hd0,gpt1)"
76    }
77fi
Note: See TracBrowser for help on using the repository browser.