Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains boot entries for a single configuration file (grub, syslinux, etc.)
func FindConfigs ¶
FindConfigs searching the path for valid boot configuration files and returns a Config for each valid instance found.
func ParseConfig ¶
ParseConfig attempts to construct a valid boot Config from the location and lines contents passed in.
type Device ¶
type Device struct { *mount.MountPoint Configs []*Config }
Device contains the path to a block filesystem along with its type
func FindDevice ¶
FindDevice attempts to construct a boot device at the given path
func FindDevices ¶
FindDevices searches for devices with bootable configs
func FindDevicesRW ¶
* FindDevicesRW is identical to FindDevices, except the "RW" one * calls FindDevice with 0 (read write flag option) * In comparison, FindDevices calls FindDevice with unix.MS_RDONLY * which mounts the device as read only.
type EntryType ¶
type EntryType int
EntryType dictates the method by which kexec should use to load the new kernel