Bootloader installation and configuration |
include/bootloader/routines/lib-iface.ycp |
Functions to interface the bootloader library | |
|
|
This module has an unstable interface. |
WARNING:
To be included to BootCommon.ycp only
Use import "BootCommon" instead.
Imports
Global Functions
Local Variables |
Loader the library has been initialized to use
Retrieve the data for perl-Bootloader library from Storage module and pass it along
- Return value:
-
nothing
Initialize the bootloader library
- Parameters:
-
force boolean true if the initialization is to be forced loader string the loader to initialize the library for
- Return value:
-
true on success
Set boot loader sections
- Parameters:
-
sections a list of all loader sections (as maps)
- Return value:
-
true on success
Get boot loader sections
- Return value:
-
a list of all loader sections (as maps)
Set global bootloader options
- Parameters:
-
globals a map of global bootloader options
- Return value:
-
true on success
Get global bootloader options
- Return value:
-
a map of global bootloader options
Get bootloader configuration meta data such as field type descriptions
- Return value:
-
a map of meta data for global and section entries
Set the device mapping (Linux <-> Firmware)
- Parameters:
-
device_map a map from Linux device to Firmware device identification
- Return value:
-
true on success
Get the device mapping (Linux <-> Firmware)
- Return value:
-
a map from Linux device to Firmware device identification
Read the files from the system to internal cache of the library
- Return value:
-
true on success
Flush the internal cache of the library to the disk
- Return value:
-
true on success
Update the bootloader settings, make updated saved settings active
- Return value:
-
true on success
Initialize the boot loader (eg. modify firmware, depending on architecture)
- Return value:
-
true on success
Get contents of files from the library cache
- Return value:
-
a map filename -> contents, empty map in case of fail
Set the contents of all files to library cache
- Parameters:
-
files a map filename -> contents
- Return value:
-
true on success