Bootloader installation and configuration |
modules/BootLILO.ycp |
Module containing specific functions for LILO configuration and installation | |
|
|
This module has an unstable interface. |
Imports
Includes
Global Functions
Local Functions |
local
removeBlanks (string original)
->
string
remove blanks from section name and replace them with _
- Parameters:
-
original string
- Return value:
-
fixed string
global
CreateSections ()
->
void
Propose sections to bootloader menu modifies internal sreuctures
global
CreateGlobals ()
->
void
Propose global options of bootloader modifies internal structures
global
Propose ()
->
void
Propose bootloader settings
global
Read (boolean reread)
->
boolean
Read settings from disk
- Parameters:
-
reread boolean true to force reread settings from system
- Return value:
-
true on success
global
Save (boolean clean, boolean init, boolean flush)
->
boolean
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
global
Update ()
->
void
Update read settings to new version of configuration files
local
getDeviceOfRaid (string device)
->
string
If device is part of RAID (md), then return first of its members otherwise return the same as argument
- Parameters:
-
device string device of the RAID
- Return value:
-
first member of the RAID
global
Write ()
->
boolean
Write bootloader settings to disk
- Return value:
-
true on success
global
GetFunctions ()
->
map<string, any>
Return map of provided functions
- Return value:
-
a map of functions (eg. $["write":BootLILO::Write])
global
Initializer ()
->
void
Initializer of LILO bootloader
global
BootLILO ()
->
void
Constructor