Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BootA is a bootloader label. BootA = "A" // BootB is a bootloader label. BootB = "B" // GrubConfig is the path to the grub config. GrubConfig = constants.BootMountPoint + "/grub/grub.cfg" // GrubDeviceMap is the path to the grub device map. GrubDeviceMap = constants.BootMountPoint + "/grub/device.map" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootEntry ¶ added in v0.13.0
type BootEntry struct {
// Paths to kernel and initramfs image.
Linux, Initrd string
// Cmdline for the kernel.
Cmdline string
}
BootEntry describes GRUB boot entry.
type Grub ¶
Grub represents the grub bootloader.
func (*Grub) GetCurrentEntry ¶ added in v0.13.0
GetCurrentEntry fetches current boot entry, vmlinuz/initrd path, boot args.
Click to show internal directories.
Click to hide internal directories.