summaryrefslogtreecommitdiffstats
path: root/server/tftpboot
diff options
context:
space:
mode:
Diffstat (limited to 'server/tftpboot')
-rw-r--r--server/tftpboot/grub/default5
-rw-r--r--server/tftpboot/grub/templates/101
-rw-r--r--server/tftpboot/grub/templates/19pxeADMIN4
-rw-r--r--server/tftpboot/grub/templates/pxe4
4 files changed, 14 insertions, 0 deletions
diff --git a/server/tftpboot/grub/default b/server/tftpboot/grub/default
index 8691d0e4..f71ae553 100644
--- a/server/tftpboot/grub/default
+++ b/server/tftpboot/grub/default
@@ -9,6 +9,7 @@ set chain=""
# Compruebo si existen distintos cargadores.
set root=''
+echo "Searching rEFInd"
search --file --set root /EFI/refind/grubx64.efi
if [ "$root" != "" ]; then
set label="rEFInd"
@@ -16,6 +17,7 @@ if [ "$root" != "" ]; then
fi
if [ "$root" == "" ]; then
+ echo "Searching Microsoft"
search --file --set root /EFI/Microsoft/Boot/bootmgfw.efi
if [ "$root" != "" ]; then
set label="Microsoft"
@@ -24,6 +26,7 @@ if [ "$root" == "" ]; then
fi
if [ "$root" == "" ]; then
+ echo "Searching Ubuntu"
search --file --set root /EFI/ubuntu/grubx64.efi
if [ "$root" != "" ]; then
set label="Ubuntu"
@@ -32,6 +35,7 @@ if [ "$root" == "" ]; then
fi
if [ "$root" == "" ]; then
+ echo "Searching Part-01-02"
search --file --set root /EFI/Part-01-02/Boot/ogloader.efi
if [ "$root" != "" ]; then
set label="Part-01-02"
@@ -40,6 +44,7 @@ if [ "$root" == "" ]; then
fi
if [ "$root" == "" ]; then
+ echo "Searching Part-01-03"
search --file --set root /EFI/Part-01-03/Boot/ogloader.efi
if [ "$root" != "" ]; then
set label="Part-01-03"
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