YaST2 Developers Documentation: Configuration of lilo



functions
files
intro

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

  • lilo/routines.ycp

Variables

Functions

global sections -> list

list of section

global globals -> map

map of global options and values

global partmap -> map

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)

global grub_set -> map

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?

global Lilo () -> void

returns section of given type and given label

global GetSection (string label) -> map

returns section map specified by label

Parameters:
label section label
Return value:
section options in map

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:
pos section position
Return value:

global AddSection (map options) -> void

adds new section

Parameters:
options section options

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:
True on success

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:
result

global WriteTest (string file) -> map

writes config to temp file

Parameters:
file write configuration to file file
Return value:
return of write fundtion

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:
True on success

global Export () -> map

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:
map as described above

local LiloRead () -> map

Fill the map of all lilo settings from the SCR

Return value:
all needed lilo settings

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:
val value to transform
Return value:
transformed value

local ui2mod_spec (any val) -> any

reverse of ag2mod

Parameters:
val value to transform
Return value:
transformed value

global list2path (list strs) -> path

converts array of string to path

Parameters:
strs list of string
Return value:
whose components are taken from strs

YaST2 Developers Documentation