dut

package
v0.0.0-...-6542adc Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Package dut contains code that are run on the DUT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivePartitions

func ActivePartitions(ctx context.Context) (partitions.State, error)

func ClearTpmOwner

func ClearTpmOwner(ctx context.Context) error

func DisableRootfsVerification

func DisableRootfsVerification(ctx context.Context, kernelNum int) error

func Main

func Main() error

func RunPostinst

func RunPostinst(ctx context.Context, partition string) error

RunPostinst runs "postinst" from the partition.

Types

type FlashOptions

type FlashOptions struct {
	DisableRootfsVerification bool // whether to disable rootfs verification
	ClobberStateful           bool // whether to clobber the stateful partition
	ClearTpmOwner             bool // whether to clean tpm owner on reboot
}

FlashOptions for Request. Unlike Request.Bucket, Request.Directory, these are determined solely by parsing the command line without further processing.

type Request

type Request struct {
	// Base time when the flash started, for logging.
	ElapsedTimeWhenSent time.Duration

	Payload *payload.OneOf

	FlashOptions
}

Request contains everything needed to perform a flash.

func (*Request) Flash

func (req *Request) Flash(ctx context.Context, p payload.Payload, rw *progress.ReportingWriter, imageID artifact.ImageID, partition string, sync bool) error

Flash a partition with imageID to partition.

func (*Request) FlashStateful

func (req *Request) FlashStateful(ctx context.Context, p payload.Payload, rw *progress.ReportingWriter, clobber bool) error

FlashStateful flashes the stateful partition.

type Result

type Result struct {
	RetryDisableRootfsVerification bool
	RetryClearTpmOwner             bool
}

Jump to

Keyboard shortcuts

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