Documentation ¶
Index ¶
- Variables
- func BootDir(bootSystem string) string
- func CurrentPartition() (partition string, err error)
- func MakeReadonly(c *check.C, path string) (err error)
- func MakeWritable(c *check.C, path string) (err error)
- func Mode() (mode string, err error)
- func NextBootPartition() (string, error)
- func OtherPartition(current string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// BootSystem proxies bootSystem
BootSystem = bootSystem
)
Functions ¶
func CurrentPartition ¶
CurrentPartition returns the current partition, a or b.
func MakeReadonly ¶
MakeReadonly remounts a path with only read permissions.
func MakeWritable ¶
MakeWritable remounts a path with read and write permissions.
func NextBootPartition ¶
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 ¶
OtherPartition returns the backup partition, a or b.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.