YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

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

This module has an unstable interface.

Imports

  • BootArch
  • BootCommon
  • BootStorage
  • HTML
  • Initrd
  • Kernel
  • Mode
  • Pkg
  • Product
  • Stage
  • Storage
  • StorageDevices

Includes

  • bootloader/grub2/dialogs.ycp
  • bootloader/grub2/misc.ycp

Global Functions

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 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 Reset (boolean init) -> void

Reset bootloader settings

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

Propose bootloader settings

global Summary () -> list<string>

Display bootloader summary

Return value:
a list of summary lines
global GetFunctions () -> map<string, any>

Return map of provided functions

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

Initializer of GRUB bootloader

global BootGRUB2 () -> void

Constructor