kexecbin

package
Version: v0.0.0-...-c97c800 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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.

Source Files

Jump to

Keyboard shortcuts

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