uki

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchCmdline

func PatchCmdline(ukiPath, newCmdline string) error

PatchCmdline patches the kernel command line in a UKI PE file. The new cmdline must fit within the existing section size.

func ReadCmdline

func ReadCmdline(ukiPath string) (string, error)

ReadCmdline reads the kernel command line from a UKI PE file.

Types

type AssetInfo

type AssetInfo struct {
	io.Closer

	Kernel  io.Reader
	Initrd  io.Reader
	Cmdline io.Reader
}

AssetInfo contains kernel, initrd and cmdline from UKI file.

func Extract

func Extract(ukiPath string) (*AssetInfo, error)

Extract extracts kernel, initrd and cmdline from UKI file.

Jump to

Keyboard shortcuts

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