Documentation ¶
Overview ¶
Package netboot provides a one-stop shop for netboot parsing needs.
netboot can take a URL from a DHCP lease and try to detect iPXE scripts and PXE scripts.
TODO: detect multiboot and Linux kernels without configuration (URL points to a single kernel file).
TODO: detect iSCSI root paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootImages ¶
func BootImages(ctx context.Context, l ulog.Logger, s curl.Schemes, lease dhclient.Lease) ([]boot.OSImage, error)
BootImages figure out a ranked order of images to boot from the given DHCP lease.
Tries, in order:
- to detect an iPXE script beginning with #!ipxe,
- to detect a pxelinux.0, in which case we will ignore the pxelinux.0 and try to parse pxelinux.cfg/<files>.
TODO: detect straight up multiboot and bzImage Linux kernel files rather than just configuration scripts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.