mount

package
v0.2.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtraDevices

func ExtraDevices(data *userdata.UserData) (err error)

ExtraDevices mounts the extra devices.

Types

type Initializer

type Initializer struct {
	// contains filtered or unexported fields
}

Initializer represents the early boot initialization control.

func NewInitializer

func NewInitializer(prefix string) (initializer *Initializer, err error)

NewInitializer initializes and returns an Initializer struct.

func (*Initializer) InitOwned

func (i *Initializer) InitOwned() (err error)

InitOwned initializes and mounts the OS owned block devices in the early boot stage.

func (*Initializer) InitSpecial

func (i *Initializer) InitSpecial() (err error)

InitSpecial initializes and mounts the special devices in the early boot stage.

func (*Initializer) MountOwned

func (i *Initializer) MountOwned() (err error)

MountOwned mounts the OS owned block devices.

func (*Initializer) MoveSpecial

func (i *Initializer) MoveSpecial() (err error)

MoveSpecial moves the special device mount points to the new root.

func (*Initializer) Owned

func (i *Initializer) Owned() *mount.Points

Owned returns the OS owned block devices.

func (*Initializer) Special

func (i *Initializer) Special() *mount.Points

Special returns the special devices.

func (*Initializer) Switch

func (i *Initializer) Switch() (err error)

Switch moves the root to a specified directory. See https://github.com/karelzak/util-linux/blob/master/sys-utils/switch_root.c. nolint: gocyclo

func (*Initializer) UnmountOwned

func (i *Initializer) UnmountOwned() (err error)

UnmountOwned unmounts the OS owned block devices.

Jump to

Keyboard shortcuts

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