manifest

package
v0.3.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultSizeBootDevice is the default size of the boot partition.
	DefaultSizeBootDevice = 512 * 1000 * 1000
)

Variables

This section is empty.

Functions

func VerifyBootDevice

func VerifyBootDevice(install machine.Install) (err error)

VerifyBootDevice verifies the supplied boot device options.

func VerifyDataDevice

func VerifyDataDevice(install machine.Install) (err error)

VerifyDataDevice verifies the supplied data device options.

func VerifyDiskAvailability

func VerifyDiskAvailability(devpath, label string) (err error)

VerifyDiskAvailability verifies that no filesystems currently exist with the labels used by the OS.

Types

type Asset

type Asset struct {
	Source      string
	Destination string
}

Asset represents a file required by a target.

type Manifest

type Manifest struct {
	Targets map[string][]*Target
}

Manifest represents the instructions for preparing all block devices for an installation.

func NewManifest

func NewManifest(install machine.Install) (manifest *Manifest, err error)

NewManifest initializes and returns a Manifest.

func (*Manifest) ExecuteManifest

func (m *Manifest) ExecuteManifest(manifest *Manifest) (err error)

ExecuteManifest partitions and formats all disks in a manifest.

type Target

type Target struct {
	Label          string
	Device         string
	FileSystemType string
	PartitionName  string
	Size           uint
	Force          bool
	Test           bool
	Assets         []*Asset
	BlockDevice    *blockdevice.BlockDevice
}

Target represents an installation partition.

func (*Target) Format

func (t *Target) Format() error

Format creates a filesystem on the device/partition.

func (*Target) Partition

func (t *Target) Partition(bd *blockdevice.BlockDevice) (err error)

Partition creates a new partition on the specified device. nolint: dupl, gocyclo

func (*Target) Save

func (t *Target) Save() (err error)

Save copies the assets to the bootloader partition.

Jump to

Keyboard shortcuts

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