diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2013-09-26 11:58:02 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-09-26 11:58:02 -0400 |
| commit | bd145c6082bde9740548ad7f88261008524ede15 (patch) | |
| tree | 674813dc9ed2bce5dcea51872d4bfa7896dec172 /netboot.c | |
| parent | 436afcc276d2400ac5fd65d4300047b266901d16 (diff) | |
| download | efi-boot-shim-bd145c6082bde9740548ad7f88261008524ede15.tar.gz efi-boot-shim-bd145c6082bde9740548ad7f88261008524ede15.zip | |
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
Diffstat (limited to 'netboot.c')
| -rw-r--r-- | netboot.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -39,6 +39,7 @@ #include "shim.h" #include "netboot.h" +#define DEFAULT_LOADER "/grub.efi" static inline unsigned short int __swap16(unsigned short int x) { @@ -228,7 +229,7 @@ static BOOLEAN extract_tftp_info(CHAR8 *url) { CHAR8 *start, *end; char ip6str[40]; - CHAR8 *template = (CHAR8 *)"/grubx64.efi"; + CHAR8 *template = DEFAULT_LOADER; if (strncmp((UINT8 *)url, (UINT8 *)"tftp://", 7)) { Print(L"URLS MUST START WITH tftp://\n"); @@ -288,7 +289,7 @@ static EFI_STATUS parseDhcp6() static EFI_STATUS parseDhcp4() { - CHAR8 *template = (CHAR8 *)"/grubx64.efi"; + CHAR8 *template = DEFAULT_LOADER; full_path = AllocateZeroPool(strlen(template)+1); if (!full_path) |
