summaryrefslogtreecommitdiffstats
path: root/server/tftpboot/grub/templates
diff options
context:
space:
mode:
Diffstat (limited to 'server/tftpboot/grub/templates')
-rw-r--r--server/tftpboot/grub/templates/101
-rw-r--r--server/tftpboot/grub/templates/19pxeADMIN4
-rw-r--r--server/tftpboot/grub/templates/pxe4
3 files changed, 9 insertions, 0 deletions
diff --git a/server/tftpboot/grub/templates/10 b/server/tftpboot/grub/templates/10
index b133f59b..4271840e 100644
--- a/server/tftpboot/grub/templates/10
+++ b/server/tftpboot/grub/templates/10
@@ -3,6 +3,7 @@ set timeout=0
# Compruebo si existe rEFInd
set root=''
+echo "rEFInd"
search --file --set root /EFI/refind/grubx64.efi
if [ "$root" == "" ]; then
set label="rEFInd no está instalado"
diff --git a/server/tftpboot/grub/templates/19pxeADMIN b/server/tftpboot/grub/templates/19pxeADMIN
index 83b7fd64..494ba87d 100644
--- a/server/tftpboot/grub/templates/19pxeADMIN
+++ b/server/tftpboot/grub/templates/19pxeADMIN
@@ -6,8 +6,10 @@ set ISODIR=ogLive
# Si existe ogLive en CACHE lo inicio, si no el de la red
set root=''
+echo "OgLive CACHE"
search --file --set root /boot/$ISODIR/ogvmlinuz
if [ "$root" == "" ]; then
+ echo "OgLive $ISODIR"
set default=1;
else
set default=0;
@@ -25,6 +27,8 @@ menuentry "OgLive $ISODIR" {
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
+ else
+ echo "OgLive default"
fi
done
diff --git a/server/tftpboot/grub/templates/pxe b/server/tftpboot/grub/templates/pxe
index 60881f43..1a67fc25 100644
--- a/server/tftpboot/grub/templates/pxe
+++ b/server/tftpboot/grub/templates/pxe
@@ -6,8 +6,10 @@ set ISODIR=ogLive
# Si existe ogLive en CACHE lo inicio, si no el de la red
set root=''
+echo "OgLive CACHE"
search --file --set root /boot/$ISODIR/ogvmlinuz
if [ "$root" == "" ]; then
+ echo "OgLive $ISODIR"
set default=1;
else
set default=0;
@@ -25,6 +27,8 @@ menuentry "OgLive $ISODIR" {
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
set DIR=$DIR
break
+ else
+ echo "OgLive default"
fi
done