mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-06 23:19:38 +00:00
Define the PXE 2nd stage loader in the beginning of the file
Make it easier to change the PXE 2nd stage loader. Conflicts: netboot.c
This commit is contained in:
parent
436afcc276
commit
bd145c6082
@ -39,6 +39,7 @@
|
|||||||
#include "shim.h"
|
#include "shim.h"
|
||||||
#include "netboot.h"
|
#include "netboot.h"
|
||||||
|
|
||||||
|
#define DEFAULT_LOADER "/grub.efi"
|
||||||
|
|
||||||
static inline unsigned short int __swap16(unsigned short int x)
|
static inline unsigned short int __swap16(unsigned short int x)
|
||||||
{
|
{
|
||||||
@ -228,7 +229,7 @@ static BOOLEAN extract_tftp_info(CHAR8 *url)
|
|||||||
{
|
{
|
||||||
CHAR8 *start, *end;
|
CHAR8 *start, *end;
|
||||||
char ip6str[40];
|
char ip6str[40];
|
||||||
CHAR8 *template = (CHAR8 *)"/grubx64.efi";
|
CHAR8 *template = DEFAULT_LOADER;
|
||||||
|
|
||||||
if (strncmp((UINT8 *)url, (UINT8 *)"tftp://", 7)) {
|
if (strncmp((UINT8 *)url, (UINT8 *)"tftp://", 7)) {
|
||||||
Print(L"URLS MUST START WITH tftp://\n");
|
Print(L"URLS MUST START WITH tftp://\n");
|
||||||
@ -288,7 +289,7 @@ static EFI_STATUS parseDhcp6()
|
|||||||
|
|
||||||
static EFI_STATUS parseDhcp4()
|
static EFI_STATUS parseDhcp4()
|
||||||
{
|
{
|
||||||
CHAR8 *template = (CHAR8 *)"/grubx64.efi";
|
CHAR8 *template = DEFAULT_LOADER;
|
||||||
full_path = AllocateZeroPool(strlen(template)+1);
|
full_path = AllocateZeroPool(strlen(template)+1);
|
||||||
|
|
||||||
if (!full_path)
|
if (!full_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user