Bootloader installation and configuration |
modules/Bootloader.ycp |
Bootloader installation and configuration base module | |
|
Imports
Includes
Global VariablesGlobal Functions
Local VariablesLocal Functions |
Write is repeating again Because of progress bar during inst_finish
Configuration was changed during inst. proposal if true
old value of vga parameter of default bootloader section
Check whether abort was pressed
- Return value:
-
true if abort was pressed
Constructor
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
- Return value:
-
true on success
Reset bootloader settings
- Parameters:
-
init boolean true if basic initialization of system-dependent settings should be done
Reset bootloader settings
Propose bootloader settings
Display bootloader summary
- Return value:
-
a list of summary lines
Update read settings to new version of configuration files
Update the whole confiuration
- Parameters:
-
iv a map representing the installed (original) version uv a map representing the version the system is upgraded to
- Return value:
-
true on success
Process update actions needed before packages update starts
Write bootloader settings to disk
- Return value:
-
true on success
Set settings how to write bootloader
- Parameters:
-
settings map of settings
return default section label
- Return value:
-
default section label
Get default section as proposed during installation
- Return value:
-
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
Add section for previous kernel and initrd (/boot/vmlinuz.previous, /boot/initrd.previous)
get kernel parameters from bootloader configuration file
- Parameters:
-
section string section title, use DEFAULT for default section key string
- Return value:
-
value, "false" if not present, "true" if present key without value
List kernel parameters
- Parameters:
-
section string section title, use DEFAULT for default section
- Return value:
-
a list of kernel parameters (in the form 'hdd=ide-scsi')
Get list of bootloader sections
- Parameters:
-
type symbol what sections to be returned `linux -> linux sections `other -> other sections `all -> all sections
- Return value:
-
of strings representing sections names
set kernel parameter to menu.lst
- Parameters:
-
key string parameter key section string section title, use DEFAULT for default section value string value, "false" to remove key, "true" to add key without value
- Return value:
-
true on success
Get currently used bootloader, detect if not set yet
- Return value:
-
botloader type
Set type of bootloader Just a wrapper to BootCommon::setLoaderType
- Parameters:
-
bootloader string type of bootloader
Get root fs device
- Return value:
-
root device
Set root fs device
- Parameters:
-
device string root device
Get device containing /boot directory
- Return value:
-
boot device
Set device containing /boot directory
- Parameters:
-
device string boot device
Answer whether LBA is supported
- Return value:
-
true if supported
Check whether settings were read or proposed, if not, decide what to do and read or propose settings
Update the language of GFX menu according to currently selected language
- Return value:
-
true on success