source: server/tftpboot/grub/templates/00unknown @ 062ea34

918-git-images-111dconfigfileconfigure-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 062ea34 was 7e4b9e0, checked in by Irina Gómez <irinagomez@…>, 6 years ago

#802 #888 PXE template for new computers '00unknown' displays a boot menu with ogLive and the other boot loaders finded.

  • Property mode set to 100644
File size: 1.6 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
6set default=0
7
8menuentry 'ogLive' {
9    set ISODIR=ogLive
10    linux (tftp)/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogtmpfs=15 oglivedir=$ISODIR INFOHOST
11    initrd (tftp)/$ISODIR/oginitrd.img
12    boot
13}
14
15# Compruebo si existen distintos cargadores.
16echo "Searching rEFInd"
17search --file --set rootRefind /EFI/refind/shimx64.efi.signed
18if [ "$rootRefind" != "" ]; then
19    menuentry "rEFInd" {
20        root="$rootRefind"
21        chainloader /EFI/refind/shimx64.efi.signed
22}
23fi
24
25echo "Searching Part-01-02"
26search --file --set rootP2 /EFI/Part-01-02/Boot/ogloader.efi
27if [ "$rootP2" != "" ]; then
28    menuentry "Part-01-02" {
29        root="$rootP2"
30        chainloader /EFI/Part-01-02/Boot/ogloader.efi
31    }
32fi
33
34echo "Searching Part-01-03"
35search --file --set rootP3 /EFI/Part-01-03/Boot/ogloader.efi
36if [ "$rootP3" != "" ]; then
37    menuentry "Part-01-03" {
38        root="$rootP3"
39        chainloader /EFI/Part-01-03/Boot/ogloader.efi
40    }
41fi
42
43echo "Searching Microsoft"
44search --file --set rootMS /EFI/Microsoft/Boot/bootmgfw.efi
45if [ "$rootMS" != "" ]; then
46    menuentry "Microsoft" {
47        root="$rootMS"
48        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
49    }
50fi
51
52echo "Searching Ubuntu"
53search --file --set rootUb /EFI/ubuntu/grubx64.efi
54if [ "$rootUb" != "" ]; then
55    menuentry "Ubuntu"
56        root="$rootUb"
57        chainloader /EFI/ubuntu/grubx64.efi
58    }
59fi
Note: See TracBrowser for help on using the repository browser.