1 | #version kernel 6.7 |
---|
2 | #definicion de variables |
---|
3 | ######################## |
---|
4 | |
---|
5 | set timeout=3 |
---|
6 | set default=0 |
---|
7 | #search.file /efi/boot/bootx64.efi root |
---|
8 | set nextboot="pxe" |
---|
9 | |
---|
10 | #controladores graficos para grub |
---|
11 | ################################## |
---|
12 | |
---|
13 | set GRUB2_PREFIX_DIR=/efi/boot/grub/ |
---|
14 | insmod $GRUB2_PREFIX_DIR/video_fb.mod |
---|
15 | insmod $GRUB2_PREFIX_DIR/efi_gop.mod |
---|
16 | insmod $GRUB2_PREFIX_DIR/efi_uga.mod |
---|
17 | #insmod $GRUB2_PREFIX_DIR/font.mod |
---|
18 | |
---|
19 | if loadfont $GRUB2_PREFIX_DIR/fonts/unicode.pf2 ; then |
---|
20 | #set gfxmode=auto |
---|
21 | #set gfxmode=1920x1080 |
---|
22 | set gfxmode=1280x720 |
---|
23 | #insmod $GRUB2_PREFIX_DIR/gfxterm.mod |
---|
24 | fi |
---|
25 | terminal_output gfxterm |
---|
26 | background_image /fondos/1280x720.png |
---|
27 | set COLOR_NORMAL="black/black" |
---|
28 | set COLOR_HIGHLIGHT="black/light-gray" |
---|
29 | ################################## |
---|
30 | #if loadfont $GRUB2_PREFIX_DIR/fonts/unicode.pf2 |
---|
31 | #then |
---|
32 | #insmod $GRUB2_PREFIX_DIR/gfxterm.mod |
---|
33 | #set gfxmode=auto |
---|
34 | #set gfxpayload=keep |
---|
35 | #terminal_output gfxterm |
---|
36 | #fi |
---|
37 | #terminal_output console |
---|
38 | |
---|
39 | #Menus de inicio |
---|
40 | ################################## |
---|
41 | fakebios |
---|
42 | insmod $GRUB2_PREFIX_DIR/test.mod |
---|
43 | search.file /boot.mac nextboot |
---|
44 | |
---|
45 | if [ test $nextboot == "pxe" ] |
---|
46 | then |
---|
47 | |
---|
48 | set nextboot="pxe" |
---|
49 | search.file /boot.win nextboot |
---|
50 | if [ test $nextboot != "pxe" ] |
---|
51 | then |
---|
52 | menuentry 'Windows 7' --class os { |
---|
53 | search.file /Windows/Boot/EFI/bootmgr.efi root |
---|
54 | loadbios /efi/boot/vbios.bin /efi/boot/int10.bin |
---|
55 | chainloader +1 |
---|
56 | } |
---|
57 | set nextboot="pxe" |
---|
58 | fi |
---|
59 | |
---|
60 | menuentry 'Cliente pxe en kernel IOG ker3.8 og1.05' --class gnu-linux --class gnu --class os { |
---|
61 | search.file /efi/boot/bootx64.efi root |
---|
62 | loadbios /efi/boot/vbios.bin /efi/boot/int10.bin |
---|
63 | linux /efi/boot/clientepxe/ogvmlinuz vga=788 acpi=force ip=dhcp |
---|
64 | initrd /efi/boot/clientepxe/oginitrd.img |
---|
65 | } |
---|
66 | set nextboot="pxe" |
---|
67 | search.file /boot.me nextboot |
---|
68 | if [ test $nextboot != "pxe" ] |
---|
69 | then |
---|
70 | |
---|
71 | menuentry 'Cliente pxe en kernel IOG ker3.8 og1.05 (boot.me)' --class gnu-linux --class gnu --class os { |
---|
72 | search.file /boot.me root |
---|
73 | loadbios /efi/boot/vbios.bin /efi/boot/int10.bin |
---|
74 | linux /efi/boot/clientepxe/ogvmlinuz vga=788 acpi=force ip=dhcp |
---|
75 | initrd /efi/boot/clientepxe/oginitrd.img |
---|
76 | } |
---|
77 | menuentry 'Cliente pxe en ogClient IOG ker3.7 og1.04' --class gnu-linux --class gnu --class os { |
---|
78 | search.file /boot.me root |
---|
79 | loadbios /efi/boot/vbios.bin /efi/boot/int10.bin |
---|
80 | linux /efi/boot/clientepxe.3.7/ogvmlinuz vga=788 acpi=force ip=dhcp |
---|
81 | initrd /efi/boot/clientepxe.3.7/oginitrd.img |
---|
82 | } |
---|
83 | set nextboot="pxe" |
---|
84 | fi |
---|
85 | |
---|
86 | search.fs_label ogClient nextboot |
---|
87 | if [ test $nextboot != "pxe" ] |
---|
88 | then |
---|
89 | #solo para arranque desde pendrive |
---|
90 | menuentry "ogclien online" { |
---|
91 | search.fs_label ogClient root |
---|
92 | linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ip=dhcp boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogactiveadmin=false ogdebug=false ogupdateinitrd=true vga=788 LANG=es_ES ip=172.17.69.230:172.17.69.233:172.17.69.254:255.255.255.0:BootOffLine:eth0:none group=Aula1 ogrepo=172.17.69.233 oglive=172.17.69.233 oglog=172.17.69.233 ogshare=172.17.69.233 |
---|
93 | initrd /boot/oginitrd.img |
---|
94 | } |
---|
95 | |
---|
96 | menuentry "ogclien local repo online" { |
---|
97 | search.fs_label ogClient root |
---|
98 | linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit og2nd=sqfs ogprotocol=local ogactiveadmin=true ogdebug=false ip=dhcp boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogactiveadmin=false ogdebug=false ogupdateinitrd=true vga=788 LANG=es_ES ip=172.17.69.230:172.17.69.233:172.17.69.254:255.255.255.0:BootOffLine:eth0:none group=Aula1 ogrepo=172.17.69.233 oglive=172.17.69.233 oglog=172.17.69.233 ogshare=172.17.69.233 |
---|
99 | initrd /boot/oginitrd.img |
---|
100 | } |
---|
101 | |
---|
102 | menuentry "ogclien offline debug noip" { |
---|
103 | search.fs_label ogClient root |
---|
104 | linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit og2nd=sqfs ogprotocol=local ogactiveadmin=true ogdebug=true ip=none |
---|
105 | initrd /boot/oginitrd.img |
---|
106 | } |
---|
107 | menuentry "ogclien offline bash noip" { |
---|
108 | search.fs_label ogClient root |
---|
109 | linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit oginit=/bin/bash og2nd=sqfs ogprotocol=local ogactiveadmin=true ogdebug=false ip=none |
---|
110 | initrd /boot/oginitrd.img |
---|
111 | } |
---|
112 | |
---|
113 | menuentry "ogclien offline debug ip=dhcp" { |
---|
114 | search.fs_label ogClient root |
---|
115 | linux /boot/ogvmlinuz ro vga=788 irqpoll acpi=on boot=oginit og2nd=sqfs ogprotocol=local ogactiveadmin=true ogdebug=true ip=dhcp |
---|
116 | initrd /boot/oginitrd.img |
---|
117 | } |
---|
118 | set nextboot="pxe" |
---|
119 | fi |
---|
120 | fi |
---|
121 | |
---|
122 | #siempre presentara la opcion de arranque en macosx |
---|
123 | |
---|
124 | #if [test $nextboot == "hd1,gpt1" ] then |
---|
125 | menuentry 'Macosx hd1,2' --class gnu-linux --class gnu --class os { |
---|
126 | search.file /System/Library/CoreServices/boot.efi root |
---|
127 | #set root=(hd1,gpt2) |
---|
128 | chainloader /System/Library/CoreServices/boot.efi |
---|
129 | #chainloading +1 |
---|
130 | } |
---|
131 | |
---|