Page MenuHomeFreeBSD

stand/i386: build a specific loader for PXE boot
Needs ReviewPublic

Authored by khorben_defora.org on Oct 10 2023, 4:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 5:45 AM
Unknown Object (File)
Tue, May 7, 6:07 PM
Unknown Object (File)
Apr 21 2024, 10:22 PM
Unknown Object (File)
Apr 6 2024, 1:41 AM
Unknown Object (File)
Dec 24 2023, 1:30 PM
Unknown Object (File)
Dec 23 2023, 2:52 AM
Unknown Object (File)
Dec 10 2023, 8:42 PM
Unknown Object (File)
Oct 16 2023, 10:40 AM
Subscribers

Details

Reviewers
emaste
imp
manu
Summary

The current PXE loader does not work since it became too big. This change creates a dedicated loader for use when booting over PXE, with support removed for the FAT and EXT2 filesystems, as well as for GZIP and BZIP2 compression. This new loader still defaults to the same interpreter as the regular loader.

It is then possible to boot the kernel over TFTP or NFS again.

This is meant as a possible alternative to D41750, and relevant to PR #257018.

Test Plan

In /usr/local/etc/dhcpd.conf: (isc-dhcp44-server package)

next-server 192.168.2.1;
filename "FreeBSD/boot/pxeboot";
option root-path "nfs://192.168.2.1/tftpboot/FreeBSD/amd64";

In /etc/inetd.conf:

tftp  dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot

In /tftpboot/FreeBSD/boot:

-rw-r--r--  1 root    wheel   415744 Sep  5 21:11 pxeboot

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped