bootloader

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bootloader provides bootloader implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootloader

type Bootloader interface {
	// Install installs the bootloader
	Install(options options.InstallOptions) error
	// Revert reverts the bootloader entry to the previous state.
	Revert(ctx context.Context) error
	// PreviousLabel returns the previous bootloader label.
	PreviousLabel() string
	// UEFIBoot returns true if the bootloader is UEFI-only.
	UEFIBoot() bool
}

Bootloader describes a bootloader.

func New added in v1.5.0

func New(secureboot bool) Bootloader

New returns a new bootloader based on the secureboot flag.

func NewAuto added in v1.5.0

func NewAuto() Bootloader

NewAuto returns a new bootloader based on auto-detection.

func Probe added in v1.5.0

func Probe(ctx context.Context, disk string) (Bootloader, error)

Probe checks if any supported bootloaders are installed.

If 'disk' is empty, it will probe all disks. Returns nil if it cannot detect any supported bootloader.

Directories

Path Synopsis
Package grub provides the interface to the GRUB bootloader: config management, installation, etc.
Package grub provides the interface to the GRUB bootloader: config management, installation, etc.
Package mount provides bootloader mount operations.
Package mount provides bootloader mount operations.
Package options provides bootloader options.
Package options provides bootloader options.
Package sdboot provides the interface to the Systemd-Boot bootloader: config management, installation, etc.
Package sdboot provides the interface to the Systemd-Boot bootloader: config management, installation, etc.

Jump to

Keyboard shortcuts

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