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 ¶
VerifyBootDevice verifies the supplied boot device options.
func VerifyDataDevice ¶
VerifyDataDevice verifies the supplied data device options.
func VerifyDiskAvailability ¶
VerifyDiskAvailability verifies that no filesystems currently exist with the labels used by the OS.
Types ¶
type Manifest ¶
Manifest represents the instructions for preparing all block devices for an installation.
func NewManifest ¶
NewManifest initializes and returns a Manifest.
func (*Manifest) ExecuteManifest ¶
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) Partition ¶
func (t *Target) Partition(bd *blockdevice.BlockDevice) (err error)
Partition creates a new partition on the specified device. nolint: dupl, gocyclo
Click to show internal directories.
Click to hide internal directories.