kexecbin

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: BSD-3-Clause Imports: 2 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 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