Documentation ¶
Index ¶
- func AutoReboot(log *zap.SugaredLogger, after, spread time.Duration, callback func())
- func Firmware() string
- func ParseCmdline() (map[string]string, error)
- func ReadBootinfo(file string) (*api.Bootinfo, error)
- func Reboot() error
- func RunKexec(info *api.Bootinfo) error
- func Watchdog(log *zap.SugaredLogger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoReboot ¶
func AutoReboot(log *zap.SugaredLogger, after, spread time.Duration, callback func())
AutoReboot will start a timer and reboot after given duration a random variation spread is added
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 ReadBootinfo ¶
ReadBootinfo read boot-info.yaml which was written by the OS install.sh to get all information required to do kexec.
func Watchdog ¶
func Watchdog(log *zap.SugaredLogger)
Watchdog periodically pings kernel software watchdog. from https://github.com/gokrazy/gokrazy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.