YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

include/bootloader/routines/switcher.ycp
Functions for choosing proper bootloader-specific functions
  • Jiri Srain
  • Olaf Dabrunz

This module has an unstable interface.

Imports

  • BootCommon
  • BootELILO
  • BootGRUB
  • BootLILO
  • BootPOWERLILO
  • BootZIPL

Global Functions

global getFunctions (string bootloader) -> map

Get map of main functions for bootloader

Parameters:
bootloader string bootloader name
Return value:
of function
global blExport () -> map

Export bootloader-specific settings

Return value:
of settings
global blImport (map settings) -> boolean

Import settings to bootloader

Parameters:
settings map of settingss
Return value:
true on success
global blRead (boolean reread, boolean avoid_reading_device_map) -> boolean

Read bootloader-specific settings

Parameters:
reread boolean true to force rereading the settings from the disk
avoid_reading_device_map
Return value:
true on success
global blReset (boolean init) -> void

Reset bootloader-specific settings

Parameters:
init boolean true if basic initialization of system-dependent settings should be done
global blPropose () -> void

Propose bootloader settings

global blsection_types () -> list <string>

Get sections types

Return value:
section types
global blSave (boolean clean, boolean init, boolean flush) -> boolean

Save bootloader cfg. files to the cache of the pluglib

Parameters:
clean boolean true to perform checks on the settings
init boolean true to reinitialize the library
flush boolean true to flush the settings to the disk
Return value:
true on success
global blSummary () -> list<string>

Get cfg. summary

Return value:
a list summary items
global blUpdate () -> void

Update bootloader-specific settings

global blWrite () -> boolean

Do the bootloader installation

Return value:
true on success
global blWidgetMaps () -> map<string,map<string,any> >

Get description maps of loader-specific widgets

Return value:
a map containing description of all loader-specific widgets
Info:

Get the loader-specific dialogs

Return value:
a map of loader-specific dialogs
global blFlagOnetimeBoot (string section) -> boolean

Set section to boot on next reboot for this type of bootloader

Parameters:
section string section to boot
Return value:
true on success