source: server/tftpboot/grub/templates/pxe

lgromero-new-oglive
Last change on this file 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
Line 
1##NO-TOCAR-ESTA-LINEA ogLive
2set timeout=0
3set timeout_style=hidden
4
5set ISODIR=ogLive
6
7# Si existe ogLive en CACHE lo inicio, si no el de la red
8set root=''
9echo "OgLive CACHE"
10search --file --set root /boot/$ISODIR/ogvmlinuz
11if [ "$root" == "" ]; then
12    echo "OgLive $ISODIR"
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
30        else
31            echo "OgLive default"
32        fi
33    done
34
35    initrd (tftp)/$DIR/oginitrd.img
36    boot
37}
Note: See TracBrowser for help on using the repository browser.