Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Linuxboot2urootBatcher []exp.Batcher = []exp.Batcher{ &BExpTLog{ L: "Matched u-root banner", R: "Welcome to u-root!", T: 40, }, &BExpTLog{ L: "Matched u-root prompt", R: "~/> ", T: 5, }}
Linuxboot2urootBatcher follows the boot sequence of u-root to the shell prompt
View Source
var LinuxbootEfiLoaderBatcher []exp.Batcher = []exp.Batcher{ &BExpTLog{ L: "Matched LinuxBoot banner", R: "\\| Starting LinuxBoot \\|", T: 20, }, &BExpTLog{ L: "Matched Starting bzImage", R: "LinuxBoot: Starting bzImage", T: 10, }}
LinuxbootEfiLoaderBatcher follows the boot sequence of linuxboot efi loder
Functions ¶
func DescribeBatcherErr ¶
DescribeBatcherErr Describe a Batcher error by picking the batch step
func ExpectOptions ¶
ExpectOptions return options based on configuration from env returned error cn be considered a warning and logged only
func SetConfLogDir ¶
SetConfLogDir update the configuration in environment by setting the log recorder directory (if previously unset)
Types ¶
type BExpTLog ¶
type BExpTLog struct { // R contains the Expect command regular expression. R string // T holds the Expect command timeout in seconds. T int // L holds the string to log once matched. L string }
BExpTLog implements the Batcher interface for Expect commands with timeout and log on success
Click to show internal directories.
Click to hide internal directories.