Bootloader installation and configuration base module
List of Global Functions
Bootloader - Constructor
Export - Export bootloader settings to a map
FlagOnetimeBoot - Set section to boot on next reboot
Import - Import settings from a map
PreUpdate - Process update actions needed before packages update starts
Propose - Propose bootloader settings
Read - Read settings from disk
ReadOrProposeIfNeeded - Check whether settings were read or proposed, if not, decide what to do and read or propose settings
Reset - Reset bootloader settings
ResetEx - Reset bootloader settings
ResolveSymlink - Resolve a single symlink in key image_key in section map s
RunDelayedUpdates - Set section to boot on next reboot
SetWriteMode - Set settings how to write bootloader
Summary - Display bootloader summary
Update - Update the whole configuration
UpdateConfiguration - Update read settings to new version of configuration files
UpdateGfxMenu - Update the language of GFX menu according to currently selected language
Write - Write bootloader settings to disk
WriteInstallation - Write bootloader settings during installation
getBootDevice - Get device containing /boot directory
getDefaultSection - return default section label
getKernelParam - get kernel parameters from bootloader configuration file
getLoaderType - Get currently used bootloader, detect if not set yet
getProposedDefaultSection - Get default section as proposed during installation
getRootDevice - Get root fs device
getSectionsList - Get list of bootloader sections
listKernelParams - List kernel parameters
setBootDevice - Set device containing /boot directory
setLoaderType - Set type of bootloader Just a wrapper to BootCommon::setLoaderType
setRootDevice - Set root fs device
List of Global Variables
cached_proposal - Cache for the installation proposal
proposed_cfg_changed - Configuration was changed during inst. proposal if true
repeating_write - Write is repeating again Because of progress bar during inst_finish
Set section to boot on next reboot
Function parameters
string section
Return value
boolean - true on success
Import settings from a map
Function parameters
map settings
Return value
boolean - true on success
Check whether settings were read or proposed, if not, decide what to do and read or propose settings
Return value
void
Resolve a single symlink in key image_key in section map s
Function parameters
map<string,any> section
string key
Return value
map<string,any> - section map of the changed section
Set settings how to write bootloader
Function parameters
map<string,any> settings
Return value
void
Update the whole configuration
Function parameters
map<string,any> iv
map<string,any> uv
Return value
boolean - true on success
Update read settings to new version of configuration files
Return value
void
Update the language of GFX menu according to currently selected language
Return value
boolean - true on success
Write bootloader settings during installation
Return value
boolean - true on success
get kernel parameters from bootloader configuration file
Function parameters
string section
string key
Return value
string - value, "false" if not present, "true" if present key without value
Get currently used bootloader, detect if not set yet
Return value
string - botloader type
Get default section as proposed during installation
Return value
string - section that was proposed as default during installation, if not known, return current default section if it is of type "image", if not found return first linux section, if no present, return empty string
Get list of bootloader sections
Function parameters
symbol type
Return value
list - of strings representing sections names
List kernel parameters
Function parameters
string section
Return value
list<string> - a list of kernel parameters (in the form 'hdd=ide-scsi')
Set device containing /boot directory
Function parameters
string device
Return value
void
Set type of bootloader Just a wrapper to BootCommon::setLoaderType
Function parameters
string bootloader
Return value
void