Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AdvSize is the total size. AdvSize = 512 // AdvLen is the usable data size. AdvLen = AdvSize - 3*4 // AdvMagic1 is the head signature. AdvMagic1 = uint32(0x5a2d2fa5) // AdvMagic2 is the total checksum. AdvMagic2 = uint32(0xa3041767) // AdvMagic3 is the tail signature. AdvMagic3 = uint32(0xdd28bf64) )
View Source
const ( // AdvEnd is the noop tag. AdvEnd = iota // AdvBootonce is the bootonce tag. AdvBootonce // AdvMenusave is the menusave tag. AdvMenusave // AdvReserved1 is a reserved tag. AdvReserved1 // AdvReserved2 is a reserved tag. AdvReserved2 // AdvReserved3 is a reserved tag. AdvReserved3 // AdvUpgrade is the upgrade tag. AdvUpgrade )
View Source
const ( // BootA is a syslinux label. BootA = "boot-a" // BootB is a syslinux label. BootB = "boot-b" // SyslinuxLdlinux is the path to ldlinux.sys. SyslinuxLdlinux = constants.BootMountPoint + "/syslinux/ldlinux.sys" // SyslinuxConfig is the path to the Syslinux config. SyslinuxConfig = constants.BootMountPoint + "/syslinux/syslinux.cfg" )
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(fallback string, config interface{}, sequence runtime.Sequence, bootPartitionFound bool) (err error)
Install implements the Bootloader interface. It sets up syslinux with the specified kernel parameters.
nolint: gocyclo
func Labels ¶
Labels parses the syslinux config and returns the current active label, and what should be the next label.
func Prepare ¶
Prepare implements the Bootloader interface. It works by writing gptmbr.bin to a block device.
Types ¶
type ADV ¶
type ADV []byte
ADV represents the Syslinux Auxiliary Data Vector.
func NewADV ¶
func NewADV(r io.ReadSeeker) (adv ADV, err error)
NewADV returns the Auxiliary Data Vector.
Click to show internal directories.
Click to hide internal directories.