Bootloader installation and configuration |
modules/BootCommon.ycp |
Data to be shared between common and bootloader-specific parts of bootloader configurator/installator, generic versions of bootloader specific functions | |
|
|
This module has an unstable interface. |
map of global options and types for new perl-Bootloader interface
map of section options and types for new perl-Bootloader interface
boolean value indicate if "/" is on logical and primary /boot doesn't exist
map of global options and values
list of section
Saved change time from target map - proposal
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().
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
Parameters of currently used bootloader
Parameters of all bootloaders
Name of currently edited section
Index of current section, -1 for new created section
Curtrently edited section -- tmp store
Option types for different bootloaders
device holding MBR for bootloader
was currently edited section changed (== true)
Backup original MBR before installing bootloader
Activate bootloader partition during installation?
Replace MBR with generic code after bootloader installation?
Kernel parameters at previous detection
were settings changed (== true)
type of bootloader to configure/being configured shall be one of "lilo", "grub", "elilo", "ppc", "zipl"
List of partitions deleted in primary proposal
map of save mode settings
Show verbose summary output
Settings of other bootloaders used when switching bootloader
Was the activate flag changed by user?
Save everything, not only changed settings
was the propose function called (== true)
Were module settings read (== true)
Was bootloader location changed? (== true)
Were configuration files manually edited and chamged?
Has been files edited warning already shown?
time of last change of partitioning
true if memtest was removed by user (manually) during the installation proposal
The name of the default section as it was read
Types of sections that should be updated (changed device names)
List of all supported bootloaders
Check whether XEN is selected for installation resp. selected
- Return value:
-
true of XEN installed/selected
Function check if trusted grub is selected or installed return true if is selected/installed and add trusted_grub to globals
- Return value:
-
true if trusted grub is selected/installed
Get the size of memory for XEN's domain 0
- Return value:
-
the memory size in kB
Create section for linux kernel
- Parameters:
-
title string the section name to create (untranslated)
- Return value:
-
a map describing the section
Export bootloader settings to a map
- Return value:
-
bootloader settings
Import settings from a map
- Parameters:
-
settings map of bootloader settings
- Return value:
-
true on success
Read settings from disk
- Parameters:
-
reread boolean true to force reread settings from system avoid_reading_device_map do not read new device map from file, use internal data
- Return value:
-
true on success
Reset bootloader settings
- Parameters:
-
init boolean true to repropose also device map
Propose bootloader settings
Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!
- Parameters:
-
clean boolean true if settings should be cleaned up (checking their correctness, supposing all files are on the disk) init boolean true to init the library flush boolean true to flush settings to the disk
- Return value:
-
true if success
Display bootloader summary
- Return value:
-
a list of summary lines
Update read settings to new version of configuration files
Write bootloader settings to disk
- Return value:
-
true on success
Set attributes of specified bootloader to variable containing attributes of currently used bootloader, call its initializer
- Parameters:
-
loader_type string loader type to initialize
Check whether loader with specified name is supported
- Parameters:
-
loader string name of loader to check
- Return value:
-
the loader name if supported, "none" otherwise
Get currently used bootloader, detect if not set yet
- Parameters:
-
recheck boolean force checking bootloader
- Return value:
-
botloader type
set type of bootloader
- Parameters:
-
bootloader string type of bootloader
List bootloaders available for configured architecture
- Return value:
-
a list of bootloaders
Search for section passed
- Parameters:
-
section_name
- Return value:
-
index number