source: server/tftpboot/grub/templates/pxe @ 5d05b06

Last change on this file since 5d05b06 was b485805, checked in by Irina Gómez <irinagomez@…>, 6 years ago

#802 #888 PXE templates: include informational messages.

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[40bd9f5]1##NO-TOCAR-ESTA-LINEA ogLive
[528ff4c]2set timeout=0
3set timeout_style=hidden
4
[2c5a875]5set ISODIR=ogLive
6
[528ff4c]7# Si existe ogLive en CACHE lo inicio, si no el de la red
8set root=''
[b485805]9echo "OgLive CACHE"
[528ff4c]10search --file --set root /boot/$ISODIR/ogvmlinuz
11if [ "$root" == "" ]; then
[b485805]12    echo "OgLive $ISODIR"
[528ff4c]13    set default=1;
14else
15    set default=0;
16fi
17
18menuentry "OgLive CACHE" {
19    linux /boot/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogupdateinitrd=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST
20    initrd /boot/$ISODIR/oginitrd.img
21    boot
22}
23
24menuentry "OgLive $ISODIR" {
25    # Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
26    for DIR in $ISODIR ogLive; do
27        if linux (tftp)/$DIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogtmpfs=15 oglivedir=$ISODIR INFOHOST ; then
28            set DIR=$DIR
29            break
[b485805]30        else
31            echo "OgLive default"
[528ff4c]32        fi
33    done
[2c5a875]34
[528ff4c]35    initrd (tftp)/$DIR/oginitrd.img
36    boot
37}
Note: See TracBrowser for help on using the repository browser.