rplib

package module
v0.0.0-...-e3392d9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2016 License: GPL-3.0 Imports: 14 Imported by: 8

README

ubuntu-recovery-rplib

Documentation

Index

Constants

View Source
const (
	WritableImage = "writable_resized.e2fs"
)

Variables

This section is empty.

Functions

func BlockSize

func BlockSize(block string) (size int64)

func Checkerr

func Checkerr(err error)

func CreateBootEntry

func CreateBootEntry(device string, partition int, loader string, label string)

func DD

func DD(input string, output string, args ...string)

func Debugshell

func Debugshell()

func Findfs

func Findfs(arg string) string

func GetBootEntries

func GetBootEntries(keyword string) (entries []string)

func GetPartitionBeginEnd

func GetPartitionBeginEnd(device string, nr int) (begin, end int)

func IsKernelCmdlineContains

func IsKernelCmdlineContains(substr string) bool

func ReadKernelCmdline

func ReadKernelCmdline() string

func Realpath

func Realpath(path string) string

func Reboot

func Reboot()

func Serial

func Serial(authority, key, brand, model, revision, serial string, t time.Time) string

func SetPartitionFlag

func SetPartitionFlag(device string, nr int, flag string)

func Shellcmd

func Shellcmd(command string)

func Shellcmdoutput

func Shellcmdoutput(command string) string

func Shellexec

func Shellexec(args ...string)

func Shellexecoutput

func Shellexecoutput(args ...string) string

func SignSerial

func SignSerial(authority, brand, model, revision, targetFolder, vaultServer string)

func Sync

func Sync()

Types

This section is empty.

Jump to

Keyboard shortcuts

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