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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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