boot

package
v0.0.0-...-b45f9ea Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidMode = errors.New("invalid boot mode")
View Source
var Xorriso = xorriso{}

Functions

func MakeEfiBootImg

func MakeEfiBootImg(dest string, size int64) error

TODO: Implement MakeEfiBootImg

Types

type Mode

type Mode struct {
	// contains filtered or unexported fields
}
var (
	BiosSyslinuxMbr             *Mode = &Mode{"bios.syslinux.mbr", nil}
	BiosSyslinuxElTorito        *Mode = &Mode{"bios.syslinux.eltorito", nil}
	UefiIa32SystemdBootEsp      *Mode = &Mode{"uefi-ia32.systemd-boot.esp", nil}
	UefiX64SystemdBootEsp       *Mode = &Mode{"uefi-x64.systemd-boot.esp", nil}
	UefiIa32SystemdBootElTorito *Mode = &Mode{"uefi-ia32.systemd-boot.eltorito", nil}
	UefiX64SystemdBootElTorito  *Mode = &Mode{"uefi-x64.systemd-boot.eltorito", nil}
	UefiX64GrubEsp              *Mode = &Mode{"uefi-x64.grub.esp", nil}
	UefiIa32GrubEsp             *Mode = &Mode{"uefi-ia32.grub.esp", nil}
	UefiX64GrubElTorito         *Mode = &Mode{"uefi-x64.grub.eltorito", nil}
	UefiIa32GrubElTorito        *Mode = &Mode{"uefi-ia32.grub.eltorito", nil}

	Modes = []*Mode{
		BiosSyslinuxMbr,
		BiosSyslinuxElTorito,
		UefiIa32SystemdBootEsp,
		UefiX64SystemdBootEsp,
		UefiIa32SystemdBootElTorito,
		UefiX64SystemdBootElTorito,
		UefiX64GrubEsp,
		UefiIa32GrubEsp,
		UefiX64GrubElTorito,
		UefiIa32GrubElTorito,
	}
)

func GetModes

func GetModes(modes ...string) ([]*Mode, error)

func (*Mode) String

func (m *Mode) String() string

func (*Mode) Validate

func (m *Mode) Validate() error

type SyslinuxConf

type SyslinuxConf struct {
	Base string
}

func ReadSysLinuxConf

func ReadSysLinuxConf(dir string) (*SyslinuxConf, error)

func (*SyslinuxConf) ParseAndBuild

func (s *SyslinuxConf) ParseAndBuild(data any, out string) error

Jump to

Keyboard shortcuts

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