Documentation
¶
Index ¶
- func ExtraDevices(data *userdata.UserData) (err error)
- type Initializer
- func (i *Initializer) InitOwned() (err error)
- func (i *Initializer) InitSpecial() (err error)
- func (i *Initializer) MountOwned() (err error)
- func (i *Initializer) MoveSpecial() (err error)
- func (i *Initializer) Owned() *mount.Points
- func (i *Initializer) Special() *mount.Points
- func (i *Initializer) Switch() (err error)
- func (i *Initializer) UnmountOwned() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtraDevices ¶
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.