Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoReboot ¶
AutoReboot will start a timer and reboot after given duration
func Firmware ¶
func Firmware() string
Firmware returns either efi or bios, depending on the boot method.
func ParseCmdline ¶
ParseCmdline will put each key=value pair from /proc/cmdline into a map.
func Watchdog ¶
func Watchdog()
Watchdog periodically pings kernel software watchdog. from https://github.com/gokrazy/gokrazy
Types ¶
type Bootinfo ¶
type Bootinfo struct { Initrd string `yaml:"initrd"` Cmdline string `yaml:"cmdline"` Kernel string `yaml:"kernel"` BootloaderID string `yaml:"bootloader_id"` }
Bootinfo is written by the installer in the target os to tell us which kernel, initrd and cmdline must be used for kexec
func ReadBootinfo ¶
ReadBootinfo read boot-info.yaml which was written by the OS install.sh to get all information required to do kexec.
Click to show internal directories.
Click to hide internal directories.