bootloader

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MPL-2.0 Imports: 4 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(bootDisk, arch, cmdline string) 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() (Bootloader, error)

New returns a new bootloader.

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 assets provides bootloader assets.
Package assets provides bootloader assets.
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 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