partition

package
v0.0.0-...-48d87d0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2015 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BootSystem proxies bootSystem
	BootSystem = bootSystem
)

Functions

func BootDir

func BootDir(bootSystem string) string

BootDir returns the directory used by the boot system.

func CurrentPartition

func CurrentPartition() (partition string, err error)

CurrentPartition returns the current partition, a or b.

func MakeReadonly

func MakeReadonly(c *check.C, path string) (err error)

MakeReadonly remounts a path with only read permissions.

func MakeWritable

func MakeWritable(c *check.C, path string) (err error)

MakeWritable remounts a path with read and write permissions.

func Mode

func Mode() (mode string, err error)

Mode returns the current bootloader mode, regular or try.

func NextBootPartition

func NextBootPartition() (string, error)

NextBootPartition returns the partition the system will use on the next boot if we are upgrading. In grub systems it is the partition pointed in the boot config file. For uboot systems the boot config file does not change, so that we take the other partition in that case

func OtherPartition

func OtherPartition(current string) string

OtherPartition returns the backup partition, a or b.

Types

This section is empty.

Jump to

Keyboard shortcuts

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