Configuration of lilo
|
modules/Lilo.ycp
|
|
Data for configuration of lilo, input and output functions.
|
|
|
|
Representation of the configuration of lilo.
Input and output routines.
Includes
Variables
Functions
|
|
|
list of section
map of global options and values
map of partitions and their descriptions.
eg: $[`mbr : $["label": _("Master boot record"),
"dev": lookup(eser_setts, "mbr_disk", "/dev/hda")],
|
global bootPart -> string
|
|
name of previously used bootpartition (needed when removing lilo)
settings from /etc/grub.conf
|
global autoinstallation -> boolean
|
|
|
global discard_settings -> boolean
|
|
flag that is used to signalize, that the config module was exited
with no wish to use the settings. in this case we need to return
empty map in Export function
|
global uninstallLilo -> boolean
|
|
uninstall lilo?
returns section of given type and given label
|
global GetSection (string label) -> map
|
|
returns section map specified by label
- Parameters:
- Return value:
|
global DeleteSection (string label) -> void
|
|
deletes section specified with given label
- Parameters:
|
label |
section label
return void |
|
global DeleteSectionPos (integer pos) -> void
|
|
deletes section specified by position
- Parameters:
- Return value:
|
global AddSection (map options) -> void
|
|
adds new section
- Parameters:
|
global ChangeSectionOptions (string sectname, map options) -> void
|
|
changes section options in global section list. section is specified by name
- Parameters:
|
sectname |
section label |
|
options |
new setion options |
|
global Read (block _unused) -> boolean
|
|
Read all example settings from the SCR
- Parameters:
|
_unused |
increase_progress A block that will be evaluated after each milestone.
It must return boolean to get known when we should stop after [Abort] |
- Return value:
|
global Write (block increase_progress, block really_abort) -> map
|
|
Update the SCR according to example settings
- Parameters:
|
increase_progress |
A block that will be evaluated after each milestone.
It must return boolean to get known when we should stop after [Abort] |
|
really_abort |
A block that will be evaluated after [Abort],
because [Abort] in the time of writing could be critical...
It must return boolean to get known if we should really stop. |
- Return value:
|
global WriteTest (string file) -> map
|
|
writes config to temp file
- Parameters:
|
file |
write configuration to file file |
- Return value:
|
global Import (map settings) -> boolean
|
|
Get all example settings from the first parameter
(For use by autoinstallation.)
- Parameters:
|
settings |
The YCP structure to be imported. |
- Return value:
Dump the example settings to a single map
(For use by autoinstallation.)
- Return value:
|
|
Dumped settings (later acceptable by Import ()) |
|
global Summary () -> string
|
|
Build a textual summary that can be used e.g. in inst_hw_config () or
something similar.
- Return value:
|
|
Summary of the configuration. |
|
local sectOptions2Map (string type, string section) -> map
|
|
reads specified section and returns values as list [$[option:$[value:..., comment:...]]]
- Parameters:
|
type |
string sections / "" |
|
section |
string |
- Return value:
Fill the map of all lilo settings from the SCR
- Return value:
|
local mod2ui (any val) -> any
|
|
convert string values from agent representation to module representation
1) if string is quoted, quotes are removed
2) if string contains escaped quotes, they're unescaped
- Parameters:
- Return value:
|
local ui2mod_spec (any val) -> any
|
|
reverse of ag2mod
- Parameters:
- Return value:
|
global list2path (list strs) -> path
|
|
converts array of string to path
- Parameters:
- Return value:
|
|
whose components are taken from strs |
|