extensions

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package extensions provides function to manage system extensions.

Package extensions provides function to manage system extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	*extensions.Extension
}

Extension wraps the extensions.Extension type with additional methods.

func GenerateKernelModuleDependencyTreeExtension added in v1.4.0

func GenerateKernelModuleDependencyTreeExtension(
	extensionPathsWithKernelModules []string,
	initramfsPath, scratchPath string,
	quirks quirks.Quirks,
	printFunc func(format string, v ...any),
) (*Extension, error)

GenerateKernelModuleDependencyTreeExtension generates a kernel module dependency tree extension.

func List

func List(rootPath string) ([]*Extension, error)

List prepared unpacked extensions under rootPath.

func (*Extension) Compress

func (ext *Extension) Compress(squashPath, initramfsPath string, quirks quirks.Quirks) (string, error)

Compress builds the squashfs image in the specified destination folder.

Components which should be placed to the initramfs are moved to the initramfsPath. Ucode components are moved into a separate designated location.

func (*Extension) KernelModuleDirectory added in v1.4.0

func (ext *Extension) KernelModuleDirectory(quirks quirks.Quirks) string

KernelModuleDirectory returns the path to the kernel modules directory.

func (*Extension) ProvidesKernelModules added in v1.4.0

func (ext *Extension) ProvidesKernelModules(quirks quirks.Quirks) bool

ProvidesKernelModules returns true if the extension provides kernel modules.

Jump to

Keyboard shortcuts

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