Bootloader installation and configuration |
modules/Bootloader.ycp |
Bootloader installation and configuration base module | |
|
|
This module has an unstable interface. |
Write is repeating again Because of progress bar during inst_finish
Configuration was changed during inst. proposal if true
Cache for the installation proposal
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 configuration
- 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
Write bootloader settings during installation
- Return value:
-
true on success
Function find and select any boot section like defaul if default boot section doesn't exist
- Parameters:
-
default_sec
- Return value:
-
true if section was found or was selected
Find "same" boot sections and return numbers of sections from BootCommon::sections
- Parameters:
-
find_section
- Return value:
-
number of "same" sactions
Delete duplicated boot sections from BootCommon::sections
Set settings how to write bootloader
- Parameters:
-
settings map of settings
Resolve a single symlink in key image_key in section map s
- Parameters:
-
section map map of section to change key
- Return value:
-
section map of the changed section
Resolve symlinks in kernel and initrd paths, for existing linux, xen and failsafe sections
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
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
Set section to boot on next reboot
- Return value:
-
true on success
Set section to boot on next reboot
- Parameters:
-
section string section to boot
- Return value:
-
true on success
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
Function update append -> add console to append
- Parameters:
-
section
- Return value:
-
updated boot section
Copy initrd and kernel on the end of instalation (1st stage)
- Return value:
-
on success