install

package
v0.0.0-...-1a99902 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(gadgetRoot, device string, options Options, observer SystemInstallObserver) error

Run bootstraps the partitions of a device, by either creating missing ones or recreating installed ones.

Types

type Options

type Options struct {
	// Also mount the filesystems after creation
	Mount bool
	// Encrypt the data partition
	Encrypt bool
}

type SystemInstallObserver

type SystemInstallObserver interface {
	gadget.ContentObserver
	// ChosenEncryptionKey stores the encrypted data partition key to be sealed
	// at the end of the installation process.
	ChosenEncryptionKey(secboot.EncryptionKey)
}

Jump to

Keyboard shortcuts

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