u-root

command module
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: 11 Imported by: 0

README

u-root

Build Status Go Report Card GoDoc License

Description

u-root embodies four different projects.

  • Go versions of many standard Linux tools, such as ls, cp, or shutdown. See cmds/core for most of these.

  • Go bootloaders that use kexec to boot Linux or multiboot kernels such as ESXi, Xen, or tboot. They are meant to be used with LinuxBoot. With that, parsers for GRUB config files or syslinux config files are to make transition to LinuxBoot easier.

  • A way to create very small Go programs using busybox mode or source mode (see below).

  • A way to create initramfs (an archive of files) to use with Linux kernels.

Creating Initramfs Archives

u-root can create an initramfs in two different modes:

  • source mode includes Go toolchain binaries + simple shell + Go source files in the initramfs archive. Tools are compiled from source on the fly by the shell.

    When you try to run a command that is not built, it is compiled first and stored in tmpfs. From that point on, when you run the command, you get the one in tmpfs. Don't worry: the Go compiler is pretty fast.

  • bb mode: One busybox-like binary comprising all the Go tools you ask to include. See here for how it works.

    In this mode, u-root copies and rewrites the source of the tools you asked to include to be able to compile everything into one busybox-like binary.

SystemBoot

SystemBoot is a set of bootloaders written in Go. It is meant to be a distribution for LinuxBoot to create a system firmware + bootloader. All of these use kexec to boot. The commands are in cmds/boot.

  • pxeboot: a network boot client that uses DHCP and HTTP or TFTP to get a boot configuration which can be parsed as PXELinux or iPXE configuration files to get a boot program.

  • fbnetboot: a network boot client that uses DHCP and HTTP to get a boot program based on Linux, and boots it. To be merged with pxeboot.

  • localboot: a tool that finds bootable kernel configurations on the local disks and boots them.

  • boot2: similar to localboot, finds a bootable kernel configuration on disk (GRUB or syslinux) and boots it. To be merged into localboot.

  • uinit: a wrapper around netboot and localboot that just mimicks a BIOS/UEFI BDS behaviour, by looping between network booting and local booting. The name uinit is necessary to be picked up as boot program by u-root.

This project started as a loose collection of programs in u-root by various LinuxBoot contributors, as well as a personal experiment by Andrea Barberio that has since been merged in. It is now an effort of a broader community and graduated to a real project for system firmwares.

More detailed information about the build process for a full LinuxBoot firmware image using u-root/systemboot and coreboot can be found in the LinuxBoot book chapter 11, LinuxBoot using coreboot, u-root and systemboot.

Usage

Make sure your Go version is 1.12. Make sure your GOPATH is set up correctly.

Download and install u-root:

go get github.com/u-root/u-root

You can now use the u-root command to build an initramfs. Here are some examples:

# Build a bb-mode cpio initramfs of all the Go cmds in ./cmds/core/...
u-root -build=bb

# Generate a bb-mode archive with bootloaders
u-root -build=bb core boot

# Generate a cpio archive named initramfs.cpio.
u-root -format=cpio -build=source -o initramfs.cpio

# Generate a bb-mode archive with only these given commands.
u-root -format=cpio -build=bb ./cmds/core/{init,ls,ip,dhclient,wget,cat}

-format=cpio and -build=source are the default flag values. The default set of packages included is all packages in github.com/u-root/u-root/cmds/core/....

In addition to using paths to specify Go source packages to include, you may also use Go package import paths (e.g. golang.org/x/tools/imports) to include commands. Only the main package and its dependencies in those source directories will be included. For example:

You can build the initramfs built by u-root into the kernel via the CONFIG_INITRAMFS_SOURCE config variable or you can load it separately via an option in for example Grub or the QEMU command line or coreboot config variable.

A good way to test the initramfs generated by u-root is with qemu:

qemu-system-x86_64 -nographic -kernel path/to/kernel -initrd /tmp/initramfs.linux_amd64.cpio

Note that you do not have to build a special kernel on your own, it is sufficient to use an existing one. Usually you can find one in /boot.

NOTE: you can compress the initramfs but for xz compression, the kernel has some restrictions on the compression options and it is suggested to align the file to 512 byte boundaries shell xz --check=crc32 -9 --lzma2=dict=1MiB --stdout /tmp/initramfs.linux_amd64.cpio \ | dd conv=sync bs=512 of=/tmp/initramfs.linux_amd64.cpio.xz

You may also include additional files in the initramfs using the -files flag. If you add binaries with -files are listed, their ldd dependencies will be included as well. As example for Debian, you want to add two kernel modules for testing, executing your currently booted kernel:

NOTE: these files will be placed in the $HOME dir in the initramfs.

u-root -files "$HOME/hello.ko $HOME/hello2.ko"
qemu-system-x86_64 -kernel /boot/vmlinuz-$(uname -r) -initrd /tmp/initramfs.linux_amd64.cpio

To specify the location in the initramfs, use <sourcefile>:<destinationfile>. For example:

u-root -files "root-fs/usr/bin/runc:usr/bin/run"

Getting Packages of TinyCore

Using the tcz command included in u-root, you can install tinycore linux packages for things you want.

You can use QEMU NAT to allow you to fetch packages. Let's suppose, for example, you want bash. Once u-root is running, you can do this:

% tcz bash

The tcz command computes and fetches all dependencies. If you can't get to tinycorelinux.net, or you want package fetching to be faster, you can run your own server for tinycore packages.

You can do this to get a local server using the u-root srvfiles command:

% srvfiles -p 80 -d path-to-local-tinycore-packages

Of course you have to fetch all those packages first somehow :-)

Build an Embeddable U-root

You can build this environment into a kernel as an initramfs, and further embed that into firmware as a coreboot payload.

In the kernel and coreboot case, you need to configure ethernet. We have a dhclient command that works for both ipv4 and ipv6. Since v6 does not yet work that well for most people, a typical invocation looks like this:

% dhclient -ipv4 -ipv6=false

Or, on newer linux kernels (> 4.x) boot with ip=dhcp in the command line, assuming your kernel is configured to work that way.

Updating Dependencies

# The latest released version of dep is required:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure

Hardware

If you want to see u-root on real hardware, this board is a good start.

Contributions

For information about contributing, including how we sign off commits, please see CONTRIBUTING.md.

Improving existing commands (e.g., additional currently unsupported flags) is very welcome. In this case it is not even required to build an initramfs, just enter the cmds/ directory and start coding. A list of commands that are on the roadmap can be found here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmds
boot/boot command
boot/boot2 command
boot/fbnetboot command
boot/localboot command
boot/pxeboot command
Command pxeboot implements PXE-based booting.
Command pxeboot implements PXE-based booting.
boot/uinit command
core/basename command
Basename return name with leading path information removed.
Basename return name with leading path information removed.
core/cat command
Cat concatenates files and prints to stdout.
Cat concatenates files and prints to stdout.
core/chmod command
Change modifier bits of a file.
Change modifier bits of a file.
core/chroot command
core/cmp command
Cmp compares two files and prints a message if their contents differ.
Cmp compares two files and prints a message if their contents differ.
core/comm command
Perform a set comparisons over two files.
Perform a set comparisons over two files.
core/cp command
Copy files.
Copy files.
core/cpio command
cpio operates on cpio files using a cpio package It only implements basic cpio options.
cpio operates on cpio files using a cpio package It only implements basic cpio options.
core/date command
Print the date.
Print the date.
core/dd command
Convert and copy a file.
Convert and copy a file.
core/df command
df reports details of mounted filesystems Synopsis df [-k] [-m] Description read mount information from /proc/mounts and statfs syscall and display summary information for all mount points that have a non-zero block count.
df reports details of mounted filesystems Synopsis df [-k] [-m] Description read mount information from /proc/mounts and statfs syscall and display summary information for all mount points that have a non-zero block count.
core/dhclient command
dhclient sets up DHCP.
dhclient sets up DHCP.
core/dirname command
dirname prints out the directory name of one or more args.
dirname prints out the directory name of one or more args.
core/dmesg command
Read the system log.
Read the system log.
core/echo command
Echo writes its arguments separated by blanks and terminated by a newline on the standard output.
Echo writes its arguments separated by blanks and terminated by a newline on the standard output.
core/elvish command
Elvish is a cross-platform shell, supporting Linux, BSDs and Windows.
Elvish is a cross-platform shell, supporting Linux, BSDs and Windows.
core/elvish/build
Package build contains build information.
Package build contains build information.
core/elvish/edit
Package edit implements a command line editor.
Package edit implements a command line editor.
core/elvish/edit/eddefs
Package eddefs contains types used in the Editor.
Package eddefs contains types used in the Editor.
core/elvish/edit/highlight
Package highlight implements syntax highlighting for Elvish code.
Package highlight implements syntax highlighting for Elvish code.
core/elvish/edit/location
Package location implements the location mode for the editor.
Package location implements the location mode for the editor.
core/elvish/edit/prompt
Package prompt implements the prompt subsystem of the editor.
Package prompt implements the prompt subsystem of the editor.
core/elvish/edit/tty
Package tty provides terminal functionality for the Elvish editor.
Package tty provides terminal functionality for the Elvish editor.
core/elvish/edit/ui
Package ui contains types that may be used by different editor frontends.
Package ui contains types that may be used by different editor frontends.
core/elvish/eval
Package eval handles evaluation of parsed Elvish code and provides runtime facilities.
Package eval handles evaluation of parsed Elvish code and provides runtime facilities.
core/elvish/eval/bundled
Package bundled keeps bundled modules.
Package bundled keeps bundled modules.
core/elvish/eval/vals
Package vals contains basic facilities for manipulating values used in the Elvish runtime.
Package vals contains basic facilities for manipulating values used in the Elvish runtime.
core/elvish/eval/vars
Package vars contains basic types for manipulating Elvish variables.
Package vars contains basic types for manipulating Elvish variables.
core/elvish/getopt
Package getopt implements a command-line argument parser.
Package getopt implements a command-line argument parser.
core/elvish/glob
Package glob implements globbing for elvish.
Package glob implements globbing for elvish.
core/elvish/parse
Package parse implements the elvish parser.
Package parse implements the elvish parser.
core/elvish/parse/parseutil
Package parseutil contains utilities built on top of the parse package.
Package parseutil contains utilities built on top of the parse package.
core/elvish/program
Package program provides the entry point to Elvish.
Package program provides the entry point to Elvish.
core/elvish/program/shell
Package shell is the entry point for the terminal interface of Elvish.
Package shell is the entry point for the terminal interface of Elvish.
core/elvish/runtime
Package runtime assembles the Elvish runtime.
Package runtime assembles the Elvish runtime.
core/elvish/store/storedefs
Package storedefs contains definitions used by the store package.
Package storedefs contains definitions used by the store package.
core/elvish/sys
Package sys provide convenient wrappers around syscalls.
Package sys provide convenient wrappers around syscalls.
core/elvish/tt
Package tt supports table-driven tests with little boilerplate.
Package tt supports table-driven tests with little boilerplate.
core/elvish/util
Package util contains utility functions.
Package util contains utility functions.
core/false command
Returns 1.
Returns 1.
core/find command
Find finds files.
Find finds files.
core/free command
free reports usage information for physical memory and swap space.
free reports usage information for physical memory and swap space.
core/fusermount command
fusermount is a very limited replacement for the C fusermount.
fusermount is a very limited replacement for the C fusermount.
core/gpgv command
gpgv validates a signature against a file.
gpgv validates a signature against a file.
core/gpt command
gpt reads and writes GPT headers.
gpt reads and writes GPT headers.
core/grep command
Concurrent, parallel grep.
Concurrent, parallel grep.
core/gzip command
core/hexdump command
Prints files in hexadecimal.
Prints files in hexadecimal.
core/hostname command
Print the system's hostname.
Print the system's hostname.
core/hwclock command
Read or set the hardware clock (RTC) in UTC format.
Read or set the hardware clock (RTC) in UTC format.
core/id command
Synopsis: id [-gGnu] Description: id displays the uid, guid and groups of the calling process Options: -g, --group print only the effective group ID -G, --groups print all group IDs -n, --name print a name instead of a number, for -ugG -u, --user print only the effective user ID
Synopsis: id [-gGnu] Description: id displays the uid, guid and groups of the calling process Options: -g, --group print only the effective group ID -G, --groups print all group IDs -n, --name print a name instead of a number, for -ugG -u, --user print only the effective user ID
core/init command
Build commands in background processes.
Build commands in background processes.
core/insmod command
Insert a module into the Linux kernel Synopsis: insmod [filename] [module options...] Description: insmod is a clone of insmod(8)
Insert a module into the Linux kernel Synopsis: insmod [filename] [module options...] Description: insmod is a clone of insmod(8)
core/io command
io reads and writes to physical memory and ports.
io reads and writes to physical memory and ports.
core/ip command
core/kexec command
kexec executes a new kernel over the running kernel (u-root).
kexec executes a new kernel over the running kernel (u-root).
core/kill command
Kill kills processes.
Kill kills processes.
core/lddfiles command
lddfiles prints the arguments and all .so dependencies of those arguments Description: lddfiles prints the arguments on the command line and all .so's on which they depend.
lddfiles prints the arguments and all .so dependencies of those arguments Description: lddfiles prints the arguments on the command line and all .so's on which they depend.
core/less command
less pages through a file Synopsis: less [OPTIONS] FILE Options: -profile FILE: Save profile in this file -tabstop NUMBER: Number of spaces per tab Keybindings: Control: * q: Quit Scrolling: * j: Scroll down * k: Scroll up * g: Scroll to top * G: Scroll to bottom * Pgdn: Scroll down one screen full * Pgup: Scroll up one screen full * ^D: Scroll down one half screen full * ^U: Scroll up one half screen full Searching: * /: Enter search regex (re2 syntax).
less pages through a file Synopsis: less [OPTIONS] FILE Options: -profile FILE: Save profile in this file -tabstop NUMBER: Number of spaces per tab Keybindings: Control: * q: Quit Scrolling: * j: Scroll down * k: Scroll up * g: Scroll to top * G: Scroll to bottom * Pgdn: Scroll down one screen full * Pgup: Scroll up one screen full * ^D: Scroll down one half screen full * ^U: Scroll up one half screen full Searching: * /: Enter search regex (re2 syntax).
core/ln command
Ln makes links to files.
Ln makes links to files.
core/losetup command
Setup loop devices.
Setup loop devices.
core/ls command
Ls prints the contents of a directory.
Ls prints the contents of a directory.
core/lsmod command
List modules currently loaded in the Linux kernel Synopsis: lsmod Description: lsmod is a clone of lsmod(8) Author: Roland Kammerer <dev.rck@gmail.com>
List modules currently loaded in the Linux kernel Synopsis: lsmod Description: lsmod is a clone of lsmod(8) Author: Roland Kammerer <dev.rck@gmail.com>
core/man command
man - print manual entry for command.
man - print manual entry for command.
core/man/data
Code generated by man/gen/gen.go.
Code generated by man/gen/gen.go.
core/man/gen command
core/md5sum command
core/mkdir command
Mkdir makes a new directory.
Mkdir makes a new directory.
core/mkfifo command
mkfifo creates a named pipe.
mkfifo creates a named pipe.
core/mknod command
Unmount a filesystem at the specified path.
Unmount a filesystem at the specified path.
core/mktemp command
Mktemp makes a temporary file (or directory) Synopsis: mktemp [OPTION]...
Mktemp makes a temporary file (or directory) Synopsis: mktemp [OPTION]...
core/more command
More pages through files without any terminal trickery.
More pages through files without any terminal trickery.
core/mount command
Mount a filesystem at the specified path.
Mount a filesystem at the specified path.
core/msr command
msr lets you read and write an msr for one or more cores.
msr lets you read and write an msr for one or more cores.
core/mv command
Mv renames files and directories.
Mv renames files and directories.
core/netcat command
Netcat pipes over the network.
Netcat pipes over the network.
core/ntpdate command
simple ntpd daemon in Go.
simple ntpd daemon in Go.
core/pci command
pci: show pci bus vendor ids and other info Description: List the PCI bus, with names if possible.
pci: show pci bus vendor ids and other info Description: List the PCI bus, with names if possible.
core/ping command
Send icmp packets to a server to test network connectivity.
Send icmp packets to a server to test network connectivity.
core/printenv command
Print environment variables.
Print environment variables.
core/ps command
Print process information.
Print process information.
core/pwd command
Print name of current directory.
Print name of current directory.
core/readlink command
readlink display value of symbolic link file.
readlink display value of symbolic link file.
core/rm command
Delete files.
Delete files.
core/rmmod command
Remove a module from the Linux kernel Synopsis: rmmod name Description: rmmod is a clone of rmmod(8) Author: Roland Kammerer <dev.rck@gmail.com>
Remove a module from the Linux kernel Synopsis: rmmod name Description: rmmod is a clone of rmmod(8) Author: Roland Kammerer <dev.rck@gmail.com>
core/rsdp command
rsdp allows to determine the ACPI RSDP structure address which could be passed to the boot command later on It must be executed at the system init as it relies on scanning the kernel messages which could be quickly filled up in some cases Synopsis: rsdp [-f file] Description: Look for rsdp value in a file, default /dev/kmsg Example: rsdp rsdp -f /path/to/file
rsdp allows to determine the ACPI RSDP structure address which could be passed to the boot command later on It must be executed at the system init as it relies on scanning the kernel messages which could be quickly filled up in some cases Synopsis: rsdp [-f file] Description: Look for rsdp value in a file, default /dev/kmsg Example: rsdp rsdp -f /path/to/file
core/scp command
Scp copies files between hosts on a network.
Scp copies files between hosts on a network.
core/seq command
Print a sequence of numbers.
Print a sequence of numbers.
core/shasum command
core/shutdown command
shutdown halts, suspends, or reboots.
shutdown halts, suspends, or reboots.
core/sleep command
Delay for the specified amount of time.
Delay for the specified amount of time.
core/sort command
Sort lines.
Sort lines.
core/sshd command
core/strace command
strace is a simple multi-process tracer.
strace is a simple multi-process tracer.
core/strings command
Strings finds printable strings.
Strings finds printable strings.
core/stty command
The command works like this: stty [verb] [options] Verbs are: dump -- dump the json of the struct to stdout load -- read a json file from stdin and use it to set raw -- convenience command to set raw cooked -- convenience command to set cooked In common stty usage, options may be specified without a verb.
The command works like this: stty [verb] [options] Verbs are: dump -- dump the json of the struct to stdout load -- read a json file from stdin and use it to set raw -- convenience command to set raw cooked -- convenience command to set cooked In common stty usage, options may be specified without a verb.
core/sync command
sync command in Go.
sync command in Go.
core/tail command
core/tar command
Create and extract tar archives.
Create and extract tar archives.
core/tee command
Tee transcribes the standard input to the standard output and makes copies in the files.
Tee transcribes the standard input to the standard output and makes copies in the files.
core/tr command
core/true command
Returns 0.
Returns 0.
core/truncate command
Truncate - shrink or extend the size of a file to the specified size Synopsis: truncate [OPTIONS] [FILE]...
Truncate - shrink or extend the size of a file to the specified size Synopsis: truncate [OPTIONS] [FILE]...
core/umount command
Unmount a filesystem at the specified path.
Unmount a filesystem at the specified path.
core/uname command
Print build information about the kernel and machine.
Print build information about the kernel and machine.
core/uniq command
Uniq removes repeated lines.
Uniq removes repeated lines.
core/unshare command
Disassociate parts of the process execution context.
Disassociate parts of the process execution context.
core/uptime command
Get the time the machine has been up Synopsis: uptime
Get the time the machine has been up Synopsis: uptime
core/wc command
Wc counts lines, words, runes, syntactically–invalid UTF codes.
Wc counts lines, words, runes, syntactically–invalid UTF codes.
core/wget command
Wget reads one file from a url and writes to stdout.
Wget reads one file from a url and writes to stdout.
core/which command
Which locates a command.
Which locates a command.
core/yes command
exp/ansi command
Print ansi escape sequences.
Print ansi escape sequences.
exp/ash command
our first builtin: cd The u-root shell is intended to be very simple, since builtins and extensions are written in Go.
our first builtin: cd The u-root shell is intended to be very simple, since builtins and extensions are written in Go.
exp/builtin command
exp/bzimage command
bzImage is used to modify bzImage files.
bzImage is used to modify bzImage files.
exp/cbmem command
cbmem prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands.
cbmem prints out coreboot mem table information in JSON by default, and also implements the basic cbmem -list and -console commands.
exp/cksum command
exp/console command
console implements a basic console.
console implements a basic console.
exp/cpu command
cpu - connection to CPU server over SSH protocol Synopsis: cpu [OPTIONS] Description: On local machine useful flags are all save -remote On remote machines, all save dbg9p, key, hostkey.
cpu - connection to CPU server over SSH protocol Synopsis: cpu [OPTIONS] Description: On local machine useful flags are all save -remote On remote machines, all save dbg9p, key, hostkey.
exp/crc command
Prints crc checksum of a file.
Prints crc checksum of a file.
exp/ectool command
These should all implement io.ReadAt, with the address as the Offset; same for WriteAt.
These should all implement io.ReadAt, with the address as the Offset; same for WriteAt.
exp/ed command
Options: ED(1) Unix Programmer's Manual ED(1) NAME ed - text editor SYNOPSIS ed [ - ] [ -d ] [ name ] DESCRIPTION Ed is the standard text editor.
Options: ED(1) Unix Programmer's Manual ED(1) NAME ed - text editor SYNOPSIS ed [ - ] [ -d ] [ name ] DESCRIPTION Ed is the standard text editor.
exp/esxiboot command
exp/fdtdump command
fdtdump prints a readable version of Flattened Device Tree or dtb.
fdtdump prints a readable version of Flattened Device Tree or dtb.
exp/field command
The `field` command reads newline-separated lines of data from either the standard input or the specified files.
The `field` command reads newline-separated lines of data from either the standard input or the specified files.
exp/fixrsdp command
This command copies the existing RSDP into the EBDA.
This command copies the existing RSDP into the EBDA.
exp/forth command
Forth is a forth interpreter.
Forth is a forth interpreter.
exp/freq command
Freq reads the given files (default standard input) and prints histograms of the character frequencies.
Freq reads the given files (default standard input) and prints histograms of the character frequencies.
exp/modprobe command
modprobe - Add and remove modules from the Linux Kernel Synopsis: modprobe [-n] modulename [parameters...] modprobe [-n] -a modulename...
modprobe - Add and remove modules from the Linux Kernel Synopsis: modprobe [-n] modulename [parameters...] modprobe [-n] -a modulename...
exp/newsshd command
exp/pflask command
exp/pox command
pox builds a portable executable as a squashfs image.
pox builds a portable executable as a squashfs image.
exp/readpe command
Dump the headers of a PE file.
Dump the headers of a PE file.
exp/run command
Run executes its arguments as a Go program.
Run executes its arguments as a Go program.
exp/rush command
our first builtin: cd The u-root shell is intended to be very simple, since builtins and extensions are written in Go.
our first builtin: cd The u-root shell is intended to be very simple, since builtins and extensions are written in Go.
exp/srvfiles command
Serve files on the network.
Serve files on the network.
exp/tac command
tac concatenates files and prints to stdout in reverse order, file by file Synopsis: tac <file...> Description: Options:
tac concatenates files and prints to stdout in reverse order, file by file Synopsis: tac <file...> Description: Options:
exp/tcz command
exp/validate command
This program validates a file by verifying a checksum and a signature file.
This program validates a file by verifying a checksum and a signature file.
exp/vboot command
exp/zimage command
zimage dumps the header of a zImage.
zimage dumps the header of a zImage.
examples
fixmynetboot command
uinit command
This is a basic init script.
This is a basic init script.
pkg
acpi
Package acpi began life as a relatively simple set of functions.
Package acpi began life as a relatively simple set of functions.
bb
Package bb implements a Go source-to-source transformation on pure Go code.
Package bb implements a Go source-to-source transformation on pure Go code.
bb/bbmain
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves.
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves.
bb/bbmain/cmd command
Package main is the busybox main.go template.
Package main is the busybox main.go template.
boot
Package boot is the high-level interface for booting another operating system from Linux using kexec.
Package boot is the high-level interface for booting another operating system from Linux using kexec.
bzimage
package bzImage implements encoding.UnmarshalBinary for bzImage files.
package bzImage implements encoding.UnmarshalBinary for bzImage files.
cmdline
Package cmdline provides a parser and convenience functions for reading configuration data from /proc/cmdline it's conformant with https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html, though making 'var_name' and 'var-name' equivalent may need to be done separately.
Package cmdline provides a parser and convenience functions for reading configuration data from /proc/cmdline it's conformant with https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html, though making 'var_name' and 'var-name' equivalent may need to be done separately.
complete
Package complete implements a simple completion package designed to be used in shells and other programs.
Package complete implements a simple completion package designed to be used in shells and other programs.
cp
Package cp implements routines to copy files.
Package cp implements routines to copy files.
cp/cmp
Package cmp compares trees of files.
Package cmp compares trees of files.
cpio
Package cpio implements utilities for reading and writing cpio archives.
Package cpio implements utilities for reading and writing cpio archives.
dhclient
Package dhclient provides a unified interface for interfacing with both DHCPv4 and DHCPv6 clients.
Package dhclient provides a unified interface for interfacing with both DHCPv4 and DHCPv6 clients.
dt
Package dt contains utilities for device tree.
Package dt contains utilities for device tree.
ebda
Package ebda looks for the Extended Bios Data Area (EBDA) pointer in /dev/mem, and provides access to the EBDA.
Package ebda looks for the Extended Bios Data Area (EBDA) pointer in /dev/mem, and provides access to the EBDA.
esxi
Package esxi contains an ESXi boot config parser for disks and CDROMs.
Package esxi contains an ESXi boot config parser for disks and CDROMs.
forth
Package forth implements Forth parsing, which allows programs to use forth-like syntax to manipulate a stack of Cells.
Package forth implements Forth parsing, which allows programs to use forth-like syntax to manipulate a stack of Cells.
golang
Package golang is an API to the Go compiler.
Package golang is an API to the Go compiler.
gpio
Package gpio provides functions for interacting with GPIO pins via the GPIO Sysfs Interface for Userspace.
Package gpio provides functions for interacting with GPIO pins via the GPIO Sysfs Interface for Userspace.
gpt
gpt implements reading and writing of GUID Partition tables.
gpt implements reading and writing of GUID Partition tables.
ibft
Package ibft defines the iSCSI Boot Firmware Table.
Package ibft defines the iSCSI Boot Firmware Table.
ipxe
Package ipxe implements a trivial IPXE config file parser.
Package ipxe implements a trivial IPXE config file parser.
kexecbin
Package kexecbin offers a kexec API via a callout to kexec-tools.
Package kexecbin offers a kexec API via a callout to kexec-tools.
kmodule
Package kmodule interfaces with Linux kernel modules.
Package kmodule interfaces with Linux kernel modules.
ldd
ldd returns all the library dependencies of a list of file names.
ldd returns all the library dependencies of a list of file names.
lockfile
Package lockfile coordinates process-based file locking.
Package lockfile coordinates process-based file locking.
loop
Package loop provides an interface to interacting with Linux loop devices.
Package loop provides an interface to interacting with Linux loop devices.
ls
Package ls implements formatting tools to list files like the Linux ls tool.
Package ls implements formatting tools to list files like the Linux ls tool.
mount
Package mount implements mounting, moving, and unmounting file systems.
Package mount implements mounting, moving, and unmounting file systems.
multiboot
Multiboot header as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Header-layout Multiboot info as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Boot-information-format Package multiboot implements bootloading multiboot kernels as defined by https://www.gnu.org/software/grub/manual/multiboot/multiboot.html.
Multiboot header as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Header-layout Multiboot info as defined in https://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Boot-information-format Package multiboot implements bootloading multiboot kernels as defined by https://www.gnu.org/software/grub/manual/multiboot/multiboot.html.
multiboot/internal/trampoline
Trampoline sets machine to a specific state defined by multiboot v1 spec and boots the final kernel.
Trampoline sets machine to a specific state defined by multiboot v1 spec and boots the final kernel.
pci
pty
Package pty provides basic pty support.
Package pty provides basic pty support.
pxe
Package pxe implements the PXE config file parsing.
Package pxe implements the PXE config file parsing.
qemu
Package qemu provides a Go API for starting QEMU VMs.
Package qemu provides a Go API for starting QEMU VMs.
rand
Package rand implements cancelable reads from a cryptographically safe random number source.
Package rand implements cancelable reads from a cryptographically safe random number source.
rng
rtc
sh
strace
Package strace implements the logic to print out the input and the return value of each traced syscall.
Package strace implements the logic to print out the input and the return value of each traced syscall.
strace/internal/abi
Package abi describes the interface between a kernel and userspace.
Package abi describes the interface between a kernel and userspace.
strace/internal/binary
Package binary translates between select fixed-sized types and a binary representation.
Package binary translates between select fixed-sized types and a binary representation.
syslinux
Package syslinux implements a syslinux config file parser.
Package syslinux implements a syslinux config file parser.
termios
Package termios implements basic termios operations including getting a tty struct, termio struct, a winsize struct, and setting raw mode.
Package termios implements basic termios operations including getting a tty struct, termio struct, a winsize struct, and setting raw mode.
uio
Package uio unifies commonly used io utilities for u-root.
Package uio unifies commonly used io utilities for u-root.
urlfetch
Package urlfetch implements routines to fetch files given a URL.
Package urlfetch implements routines to fetch files given a URL.
uroot/test/foo command
uroot/util
Package util contains various u-root utility functions.
Package util contains various u-root utility functions.
vpd
zimage
Package zimage contains a Parser for the arm zImage Linux format.
Package zimage contains a Parser for the arm zImage Linux format.
tools
build_perf command
Measure the performance of building all the Go commands under various GOGC values.
Measure the performance of building all the Go commands under various GOGC values.
checklicenses command
Run with `go run checklicenses.go`.
Run with `go run checklicenses.go`.
makebb command
makebb compiles many Go commands into one bb-style binary.
makebb compiles many Go commands into one bb-style binary.
makebbmain command
makebbmain creates a bb main.go source file.
makebbmain creates a bb main.go source file.
mkinitramfs
mkinitramfs creates a u-root initramfs given the list of files on the command line.
mkinitramfs creates a u-root initramfs given the list of files on the command line.
testramfs command
testramfs tests things, badly
testramfs tests things, badly
vpdbootmanager command

Jump to

Keyboard shortcuts

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