YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

modules/BootGRUB.ycp
Module containing specific functions for GRUB configuration and installation
  • Jiri Srain
  • Joachim Plack
  • Olaf Dabrunz
  • Philipp Thomas

This module has an unstable interface.

Imports

  • Arch
  • BootCommon
  • BootStorage
  • HTML
  • Kernel
  • Mode
  • Pkg
  • Stage
  • Storage
  • StorageDevices

Includes

  • bootloader/grub/dialogs.ycp
  • bootloader/grub/misc.ycp
  • bootloader/routines/popups.ycp

Global Variables

Global Functions

global merge_level -> symbol

Shall proposal merge menus?

global update_device_map_done -> boolean

The variable indicate if client bootloader_preupdate successful update device map If success true else false

global disks_order -> list<string>

Disks order for ordering widget purproses

global CheckAdditionalKernels () -> list<map<string,string> >

Check for additional kernels which could go to the proposed settings

Return value:
a list of kernels to propose
Info:

Propose sections to bootloader menu modifies internal structures

global StandardGlobals () -> map<string,string>

Propose global options of bootloader

global Read (boolean reread, boolean avoid_reading_device_map) -> boolean

Read settings from disk

Parameters:
reread boolean true to force reread settings from system
avoid_reading_device_map do not read new device map from file, use internal data
Return value:
true on success
global Reset (boolean init) -> void

Reset bootloader settings

Parameters:
init boolean true to repropose also device map
global Propose () -> void

Propose bootloader settings

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 Summary () -> list<string>

Display bootloader summary

Return value:
a list of summary lines
global Update () -> void

Update read settings to new version of configuration files

global Write () -> boolean

Write bootloader settings to disk

Return value:
true on success
global FlagOnetimeBoot (string section) -> boolean

Boot passed section once on next reboot.

Parameters:
section string section to boot
Return value:
true on success
global GetFunctions () -> map<string, any>

Return map of provided functions

Return value:
a map of functions (eg. $["write"::Write])
global Initializer () -> void

Initializer of GRUB bootloader

global BootGRUB () -> void

Constructor