Documentation ¶
Overview ¶
Package grub provides the interface to the GRUB bootloader: config management, installation, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootLabel ¶
type BootLabel string
BootLabel represents a boot label, e.g. A or B.
const ( // BootA is a bootloader label. BootA BootLabel = "A" // BootB is a bootloader label. BootB BootLabel = "B" // BootReset is a bootloader label. BootReset BootLabel = "Reset" // ConfigPath is the path to the grub config. ConfigPath = constants.BootMountPoint + "/grub/grub.cfg" )
func FlipBootLabel ¶
FlipBootLabel flips the boot entry, e.g. A -> B, B -> A.
func ParseBootLabel ¶
ParseBootLabel parses the given human-readable boot label to a grub.BootLabel.
type Config ¶
Config represents a grub configuration file (grub.cfg).
Click to show internal directories.
Click to hide internal directories.