class Setboot::BootInfo

Overview

Captures data on the state of the boot manager

Defined in:

setboot.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.from_bootmgr #

Constructs an instance by consuming output for efibootmgr


[View source]

Instance Method Detail

def bootlist : String #

Return a descriptive string for the boot order


[View source]
def bootmgr_set_next #

Set the current next boot entry in EFI


[View source]
def bootmgr_set_order #

Set the current boot order in EFI


[View source]
def bootnext!(substr : String) : UInt16 | Nil #

Change the next boot entry to the first matching and active entry


[View source]
def current : UInt16 #

[View source]
def entries : Hash(UInt16, BootEntry) #

[View source]
def match_line!(line : String) #

Process a single line from the output of efibootmgr


[View source]
def nextent : UInt16 | Nil #

[View source]
def order : Array(UInt16) #

[View source]
def promote!(substr : String) : UInt16 | Nil #

Move the first matching and active entry to the start of the order


[View source]