Added DHCP Architecture Type 9

By supporting Type 9 ( „EFI x86-64“ ), pixiecore can boot VMware (Fusion) EFI-Type Machines.

The const for FirmwareEFI64 has been renamed to FirmwareEFIBC ( see RFC-4578, Section 2.1 ) and FirmwareEFI64 is assign to type 9 and uses the same ipxe blob as FirmwareEFIBC.

Signed-off-by: Mathias Kaufmann <me@stei.gr>
This commit is contained in:
Mathias Kaufmann 2017-01-21 15:07:46 +01:00 committed by Dave Anderson
parent 2ed87f6141
commit bc95504ca6
3 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,

View File

@ -157,6 +157,7 @@ func serverFromFlags(cmd *cobra.Command) *pixiecore.Server {
}
if ipxeEFI64 != "" {
ret.Ipxe[pixiecore.FirmwareEFI64] = mustFile(ipxeEFI64)
ret.Ipxe[pixiecore.FirmwareEFIBC] = mustFile(ipxeEFI64)
}
if timestamps {

View File

@ -125,12 +125,14 @@ const (
// Note the values match the values from RFC4578.
FirmwareX86PC Firmware = 0 // "Classic" x86 BIOS with PXE/UNDI support.
FirmwareEFI32 = 6 // 32-bit x86 processor running EFI
FirmwareEFI64 = 7 // 64-bit x86 processor running EFI
FirmwareEFIBC = 7 // 64-bit x86 processor running EFI
FirmwareEFI64 = 9 // 64-bit x86 processor running EFI
)
var fwToArch = map[Firmware]Architecture{
FirmwareX86PC: ArchIA32,
FirmwareEFI32: ArchIA32,
FirmwareEFIBC: ArchX64,
FirmwareEFI64: ArchX64,
}