Peter Jones
e053c22701
Since different distros name grub*.efi differently, make it compile-time.
...
Basically, if you don't want grub.efi, you do:
make 'DEFAULT_LOADER=\\\\grubx64.efi'
Signed-off-by: Peter Jones <pjones@redhat.com>
2013-09-26 11:58:02 -04:00
Gary Ching-Pang Lin
bd145c6082
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
2013-09-26 11:58:02 -04:00
Steve Langasek
5ccacd3a48
Fix a memory leak
2013-09-24 12:05:51 -04:00
Steve Langasek
69a54db486
Correct limits on the length of ipv6 addresses
...
The maximum length of a string representation of an ipv6 address is 39
characters (8 groups of 4 hex chars, with 7 colons in between). So don't
allocate more room than this - and more importantly, don't blindly accept
strings from the server that are longer than our buffer...
2013-09-24 12:05:47 -04:00
Steve Langasek
af049ff457
More consistent types, fewer casts
2013-09-24 12:05:38 -04:00
Steve Langasek
6eaa1a9c9e
Misc allocation cleanups
2013-09-24 12:05:34 -04:00
Steve Langasek
3816832bc5
Fix an off-by-one error
...
We don't need to add one because our end pointer is already off the end of
the string we want to copy.
2013-09-24 12:05:31 -04:00
Steve Langasek
e2979f2c5f
Fix nul termination errors in filenames passed to tftp
...
Fix various errors in the tftp string handling, to ensure we always have
properly nul-terminated strings.
2013-09-24 12:05:28 -04:00
Steve Langasek
fbc486b50d
Pass the right arguments to EFI_PXE_BASE_CODE_TFTP_READ_FILE
...
A wrong pointer was being passed to EFI_PXE_BASE_CODE_TFTP_READ_FILE,
preventing us from getting the file size back from the tftp call, ensuring
that we don't have enough information to properly secureboot-validate the
retrieved image.
2013-09-24 12:05:21 -04:00
Peter Jones
6cd79ef950
EFI_PXE_BASE_CODE_DHCPV6_PACKET is in gnu-efi-3.0t
2013-05-31 15:34:11 -04:00
Matthew Garrett
e4d55afe6a
Don't fail if there's no network devices
...
findNetboot() would continue blindly even if no PXE-capable devices were
found. Fix that.
2012-11-01 16:03:24 -04:00
Matthew Garrett
1c5957068f
Add draft version of Neil's netboot code
2012-10-12 20:14:14 -04:00