diff options
Diffstat (limited to 'server/tftpboot/grub/templates/19pxeADMIN')
-rw-r--r-- | server/tftpboot/grub/templates/19pxeADMIN | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/server/tftpboot/grub/templates/19pxeADMIN b/server/tftpboot/grub/templates/19pxeADMIN index 7ab4770d..83b7fd64 100644 --- a/server/tftpboot/grub/templates/19pxeADMIN +++ b/server/tftpboot/grub/templates/19pxeADMIN @@ -1,5 +1,33 @@ ##NO-TOCAR-ESTA-LINEA ogLiveAdmin +set timeout=0 +set timeout_style=hidden + set ISODIR=ogLive -linux (tftp)/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST -initrd (tftp)/$ISODIR/oginitrd.img -boot + +# Si existe ogLive en CACHE lo inicio, si no el de la red +set root='' +search --file --set root /boot/$ISODIR/ogvmlinuz +if [ "$root" == "" ]; then + set default=1; +else + set default=0; +fi + +menuentry "OgLive CACHE" { + linux /boot/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogupdateinitrd=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST + initrd /boot/$ISODIR/oginitrd.img + boot +} + +menuentry "OgLive $ISODIR" { + # Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto + for DIR in $ISODIR ogLive; do + if linux (tftp)/$DIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST ; then + set DIR=$DIR + break + fi + done + + initrd (tftp)/$DIR/oginitrd.img + boot +} |