cosboot

package
v0.0.0-...-f7eae2a Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cosboot exports utilities for interacting with the COS boot process.

Index

Constants

View Source
const (
	UnknownBoot = BootPath("UnknownBoot")
	GRUBBoot    = BootPath("GRUBBoot")
	UKI         = BootPath("UKI")
)

Variables

This section is empty.

Functions

func EFIArch

func EFIArch(img []byte) (string, error)

func EditGRUBConfig

func EditGRUBConfig(disk, sedCmd string) error

func EditUKICmdLine

func EditUKICmdLine(disk, vmlinux, sedCmd string) error

func IsBootA

func IsBootA(disk string) (bool, error)

func NextGRUBCmdLine

func NextGRUBCmdLine(disk string) (string, error)

func NextUKICmdLine

func NextUKICmdLine(disk, vmlinux string) (string, error)

func ReadEFIFile

func ReadEFIFile(disk, path string) ([]byte, error)

func WriteEFIFile

func WriteEFIFile(disk, path string, data []byte, perm os.FileMode) error

Types

type BootPath

type BootPath string

func DiskBootPath

func DiskBootPath(disk string) (BootPath, error)

Jump to

Keyboard shortcuts

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