kernel

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoReboot

func AutoReboot(log *slog.Logger, 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

func ParseCmdline() (map[string]string, error)

ParseCmdline will put each key=value pair from /proc/cmdline into a map.

func ReadBootinfo

func ReadBootinfo(file string) (*api.Bootinfo, error)

ReadBootinfo read boot-info.yaml which was written by the OS install.sh to get all information required to do kexec.

func Reboot

func Reboot() error

Reboot reboots the the server

func RunKexec

func RunKexec(info *api.Bootinfo) error

RunKexec boot into the new kernel given in Bootinfo

func Watchdog

func Watchdog(log *slog.Logger)

Watchdog periodically pings kernel software watchdog. from https://github.com/gokrazy/gokrazy

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL