作者: 梦寻凌雪 时间: 2023-10-4 20:38
支持支持作者: xiaohhl 时间: 2023-11-10 02:45
UEFI
If you have machines which attempt to perform a UEFI network boot, then download http://boot.ipxe.org/ipxe.efi and save it to your TFTP server directory.
You will need to configure your DHCP server to hand out undionly.kpxe as the boot file to BIOS machines and ipxe.efi as the boot file to UEFI machines. If you are using ISC dhcpd then edit /etc/dhcpd.conf to contain
option client-arch code 93 = unsigned integer 16;
if option client-arch != 00:00 {
filename "ipxe.efi";
} else {
filename "undionly.kpxe";
}
next-server X.X.X.X;
where X.X.X.X is the IP address of your TFTP server.
Note that UEFI network booting tends to be substantially slower than BIOS network booting, due to fundamental architectural limitations in UEFI. Most UEFI systems provide the ability to perform a network boot in a BIOS compatibility mode. You may wish to upgrade your system to use BIOS mode for network booting.作者: xiaohhl 时间: 2023-11-10 02:49
其实需求的描述很简单:根据DHCP的请求信息,判断如果是legacy,我们就指定一个legacy支持的引导文件,如果是UEFI,就指定一个EFI支持的引导文件,避免服务器需要人工切换名字。