From d661fb52aebc269cc9dad01c674cdb2820abe78c Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Tue, 22 Oct 2019 10:44:02 +0200 Subject: #802 #888 PXE templates support EFI partition in whichever partition. Example template for boot with grub. --- server/tftpboot/grub/examples/grub | 4 ++++ server/tftpboot/grub/templates/10 | 4 +--- server/tftpboot/grub/templates/11 | 6 +++--- server/tftpboot/grub/templates/12 | 6 +++--- server/tftpboot/grub/templates/13 | 4 ++++ server/tftpboot/menu.lst/templates/11 | 4 ++-- server/tftpboot/menu.lst/templates/12 | 4 ++-- server/tftpboot/menu.lst/templates/13 | 8 ++++++++ 8 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 server/tftpboot/grub/examples/grub create mode 100644 server/tftpboot/grub/templates/13 create mode 100644 server/tftpboot/menu.lst/templates/13 (limited to 'server/tftpboot') diff --git a/server/tftpboot/grub/examples/grub b/server/tftpboot/grub/examples/grub new file mode 100644 index 00000000..5d42c4af --- /dev/null +++ b/server/tftpboot/grub/examples/grub @@ -0,0 +1,4 @@ +##NO-TOCAR-ESTA-LINEA grub +search --file --set root /EFI/grub/Boot/grubx64.efi +chainloader /EFI/grub/Boot/grubx64.efi +boot diff --git a/server/tftpboot/grub/templates/10 b/server/tftpboot/grub/templates/10 index 82c44464..9ed11639 100644 --- a/server/tftpboot/grub/templates/10 +++ b/server/tftpboot/grub/templates/10 @@ -1,6 +1,4 @@ ##NO-TOCAR-ESTA-LINEA 1hd -echo "rEFInd" - -root='hd0,gpt1' +search --file --set root /EFI/refind/shimx64.efi.signed chainloader /EFI/refind/shimx64.efi.signed boot diff --git a/server/tftpboot/grub/templates/11 b/server/tftpboot/grub/templates/11 index 06b34088..e17d387b 100644 --- a/server/tftpboot/grub/templates/11 +++ b/server/tftpboot/grub/templates/11 @@ -1,4 +1,4 @@ -##NO-TOCAR-ESTA-LINEA 1hd-1os -root='hd0,gpt1' -chainloader /EFI/Part-01-02/Boot/ogloader.efi +##NO-TOCAR-ESTA-LINEA 1hd-1partition +search --file --set root /EFI/Part-01-01/Boot/ogloader.efi +chainloader /EFI/Part-01-01/Boot/ogloader.efi boot diff --git a/server/tftpboot/grub/templates/12 b/server/tftpboot/grub/templates/12 index 6f22fc30..2bcf108d 100644 --- a/server/tftpboot/grub/templates/12 +++ b/server/tftpboot/grub/templates/12 @@ -1,4 +1,4 @@ -##NO-TOCAR-ESTA-LINEA 1hd-2os -root='hd0,gpt1' -chainloader /EFI/Part-01-03/Boot/ogloader.efi +##NO-TOCAR-ESTA-LINEA 1hd-2partition +search --file --set root /EFI/Part-01-02/Boot/ogloader.efi +chainloader /EFI/Part-01-02/Boot/ogloader.efi boot diff --git a/server/tftpboot/grub/templates/13 b/server/tftpboot/grub/templates/13 new file mode 100644 index 00000000..4c9d26a0 --- /dev/null +++ b/server/tftpboot/grub/templates/13 @@ -0,0 +1,4 @@ +##NO-TOCAR-ESTA-LINEA 1hd-3partition +search --file --set root /EFI/Part-01-03/Boot/ogloader.efi +chainloader /EFI/Part-01-03/Boot/ogloader.efi +boot diff --git a/server/tftpboot/menu.lst/templates/11 b/server/tftpboot/menu.lst/templates/11 index c1492b57..6635b495 100644 --- a/server/tftpboot/menu.lst/templates/11 +++ b/server/tftpboot/menu.lst/templates/11 @@ -1,6 +1,6 @@ -##NO-TOCAR-ESTA-LINEA 1hd-1os +##NO-TOCAR-ESTA-LINEA 1hd-1partition timeout 1 -title FirstDisk-FirstOperatingSystem +title FirstDisk-FirstPartition root (hd0,0) chainloader (hd0,0)+1 boot diff --git a/server/tftpboot/menu.lst/templates/12 b/server/tftpboot/menu.lst/templates/12 index 0db966b7..0843c3b1 100644 --- a/server/tftpboot/menu.lst/templates/12 +++ b/server/tftpboot/menu.lst/templates/12 @@ -1,6 +1,6 @@ -##NO-TOCAR-ESTA-LINEA 1hd-2os +##NO-TOCAR-ESTA-LINEA 1hd-2partition timeout 1 -title FirstHardDisk-SecondOperatingSystem +title FirstHardDisk-SecondPartition root (hd0,1) chainloader (hd0,1)+1 boot diff --git a/server/tftpboot/menu.lst/templates/13 b/server/tftpboot/menu.lst/templates/13 new file mode 100644 index 00000000..fedf8ebf --- /dev/null +++ b/server/tftpboot/menu.lst/templates/13 @@ -0,0 +1,8 @@ +##NO-TOCAR-ESTA-LINEA 1hd-3partition +timeout 1 +title FirstDisk-ThirdPartition +root (hd0,2) +chainloader (hd0,2)+1 +boot + + -- cgit v1.2.3-18-g5258