netboot

package
v7.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

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.

Directories

Path Synopsis
Package ipxe implements a trivial IPXE config file parser.
Package ipxe implements a trivial IPXE config file parser.
Package pxe implements the PXE config file parsing.
Package pxe implements the PXE config file parsing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL