kexecbin

package
v5.0.1-0...-e061c4d Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package kexecbin offers a kexec API via a callout to kexec-tools.

u-root's kexec implementation currently covers less use-cases than the one from kexec-tools. The user has to embed a kexecbin program in the initramfs, and make it available in the PATH, then call the `KexecBin` function. Please note that adding an external kexec implementation will increase the ramfs size more than the pure-Go implementation from u-root.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DeviceTreePaths is the virtual fs path for accessing device-tree
	// through Linux
	DeviceTreePaths = []string{"/sys/firmware/fdt", "/proc/device-tree"}
)

Functions

func KexecBin

func KexecBin(kernelFilePath string, kernelCommandline string, initrdFilePath string, dtFilePath string) error

KexecBin uses kexec-tools binary and runtime architecture detection to execute abritary files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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