diff options
author | Irina Gómez <irinagomez@us.es> | 2019-04-25 11:39:15 +0200 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-04-25 11:39:15 +0200 |
commit | b485805baf9244427377f33747f2af72df0804b9 (patch) | |
tree | 5333e659e4edc8a89f50d8dc249bb194cdb84242 /server | |
parent | b0a7050136d336391db2f38718e3f34f4ab9a99f (diff) |
#802 #888 PXE templates: include informational messages.
Diffstat (limited to 'server')
-rw-r--r-- | server/tftpboot/grub/default | 5 | ||||
-rw-r--r-- | server/tftpboot/grub/templates/10 | 1 | ||||
-rw-r--r-- | server/tftpboot/grub/templates/19pxeADMIN | 4 | ||||
-rw-r--r-- | server/tftpboot/grub/templates/pxe | 4 |
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 |