Data to be shared between common and bootloader-specific parts of bootloader configurator/installator, generic versions of bootloader specific functions
List of Global Functions
CreateLinuxSection - Create section for linux kernel
Dom0MemorySize - Get the size of memory for XEN's domain 0
Export - Export bootloader settings to a map
Import - Import settings from a map
Propose - Propose bootloader settings
Read - Read settings from disk
Reset - Reset bootloader settings
Save - Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!
Section2Index - Search for section passed
Summary - Display bootloader summary
Update - Update read settings to new version of configuration files
Write - Write bootloader settings to disk
XenPresent - Check whether XEN is selected for installation resp. selected
getBootloaders - List bootloaders available for configured architecture
getLoaderType - Get currently used bootloader, detect if not set yet
isTrustedGrub - Function check if trusted grub is selected or installed return true if is selected/installed and add trusted_grub to globals
setCurrentLoaderAttribs - Set attributes of specified bootloader to variable containing attributes of currently used bootloader, call its initializer
setLoaderType - set type of bootloader
List of Global Variables
BootPartitionDevice - string sepresenting device name of /boot partition same as RootPartitionDevice if no separate /boot partition
ExtendedPartitionDevice - string representing device name of extended partition
RootPartitionDevice - string representing device name of / partition
activate - Activate bootloader partition during installation?
activate_changed - Was the activate flag changed by user?
all_partitions - bnc #468922 - problem with longtime running the parsing a huge number of disks map<string,map> the map of all partitions with info about it -> necessary for Dev2MountByDev() in routines/misc.ycp
backup_mbr - Backup original MBR before installing bootloader
bois_id_missing - Flag indicates that bios_id_missing in disk true if missing false if at least one disk has bios_id
boot_device_on_logical - boolean value indicate if "/" is on logical and primary /boot doesn't exist
bootloader_attribs - Parameters of all bootloaders
bootloaders - List of all supported bootloaders
cached_settings_base_data_change_time - Saved change time from target map - proposal
changed - were settings changed (== true)
current_bootloader_attribs - Parameters of currently used bootloader
current_section - Curtrently edited section -- tmp store
current_section_index - Index of current section, -1 for new created section
current_section_name - Name of currently edited section
default_changed - true if default section is edited it is important for remember default name...
del_parts - List of partitions deleted in primary proposal
device_mapping - device mapping between Linux and firmware
exports - map of other exported information for new perl-Bootloader interface
files_edited - Were configuration files manually edited and chamged?
files_edited_warned - Has been files edited warning already shown?
floppy_devices - list of installed floppy devices
global_options - map of global options and types for new perl-Bootloader interface
globals - map of global options and values
kernelCmdLine - Kernel parameters at previous detection
loader_device - device to save loader stage 1 to NOTE: this variable is being phased out. The boot_* keys in the globals map are now used to remember the selected boot location. Thus, we now have a list of selected loader devices. It can be generated from the information in the boot_* keys and the global variables (Boot|Root|Extended)PartitionDevice and mbrDisk by calling GetBootloaderDevices().
location_changed - Was bootloader location changed? (== true)
mbrDisk - device holding MBR for bootloader
multipath_mapping - device mapping between real devices and multipath
one_section_changed - was currently edited section changed (== true)
opt_types - Option types for different bootloaders
other_bl - Settings of other bootloaders used when switching bootloader
partitioning_last_change - time of last change of partitioning
prefer_lilo - Last detection proposed to prefer lilo instead of grub
read_default_section_name - The name of the default section as it was read
removed_sections - true if memtest was removed by user (manually) during the installation proposal
repl_mbr - Replace MBR with generic code after bootloader installation?
save_all - Save everything, not only changed settings
save_on_finish - Shall be settings saved when finishing bootloader configuration?
saved_last_change_time_from_storage - Saved change time from target map - only for MapAllPartitions()
section_options - map of section options and types for new perl-Bootloader interface
sections - list of section
sections_changed - were sections settings changes (== true)
selected_location - The kind of bootloader location that the user selected last time he went to the dialog. Used as a hint next time a proposal is requested, so the proposal can try to satisfy the user's previous preference. NOTE: this variable is being phased out. The boot_* keys in the globals map will be used to remember the last selected location. Currently, valid values are: mbr, boot, root, floppy, mbr_md, none
verbose - Show verbose summary output
was_proposed - was the propose function called (== true)
was_read - Were module settings read (== true)
write_settings - map of save mode settings
Create section for linux kernel
Function parameters
string title
Return value
map<string,any> - a map describing the section
Get the size of memory for XEN's domain 0
Return value
integer - the memory size in kB
Import settings from a map
Function parameters
map settings
Return value
boolean - true on success
Read settings from disk
Function parameters
boolean reread
boolean avoid_reading_device_map
Return value
boolean - true on success
Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!
Function parameters
boolean clean
boolean init
boolean flush
Return value
boolean - true if success
Search for section passed
Function parameters
string section_name
Return value
integer - index number
Check whether XEN is selected for installation resp. selected
Return value
boolean - true of XEN installed/selected
List bootloaders available for configured architecture
Return value
list<string> - a list of bootloaders
Get currently used bootloader, detect if not set yet
Function parameters
boolean recheck
Return value
string - botloader type
Function check if trusted grub is selected or installed return true if is selected/installed and add trusted_grub to globals
Return value
boolean - true if trusted grub is selected/installed
Set attributes of specified bootloader to variable containing attributes of currently used bootloader, call its initializer
Function parameters
string loader_type
Return value
void
string sepresenting device name of /boot partition same as RootPartitionDevice if no separate /boot partition
bnc #468922 - problem with longtime running the parsing a huge number of disks map<string,map> the map of all partitions with info about it -> necessary for Dev2MountByDev() in routines/misc.ycp
Flag indicates that bios_id_missing in disk true if missing false if at least one disk has bios_id
boolean value indicate if "/" is on logical and primary /boot doesn't exist
true if default section is edited it is important for remember default name...
device to save loader stage 1 to NOTE: this variable is being phased out. The boot_* keys in the globals map are now used to remember the selected boot location. Thus, we now have a list of selected loader devices. It can be generated from the information in the boot_* keys and the global variables (Boot|Root|Extended)PartitionDevice and mbrDisk by calling GetBootloaderDevices().
true if memtest was removed by user (manually) during the installation proposal
Saved change time from target map - only for MapAllPartitions()
The kind of bootloader location that the user selected last time he went to the dialog. Used as a hint next time a proposal is requested, so the proposal can try to satisfy the user's previous preference. NOTE: this variable is being phased out. The boot_* keys in the globals map will be used to remember the last selected location. Currently, valid values are: mbr, boot, root, floppy, mbr_md, none