28. BootGRUB

Module containing specific functions for GRUB configuration and installation

28.1. Summary of Module Globals

List of Global Functions

  • BootGRUB - Constructor

  • CreateSections - Propose sections to bootloader menu modifies internal structures

  • GetFunctions - Return map of provided functions

  • Initializer - Initializer of GRUB bootloader

  • Propose - Propose bootloader settings

  • Read - Read settings from disk

  • Reset - Reset bootloader settings

  • Save - Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!

  • StandardGlobals - Propose global options of bootloader

  • Summary - Display bootloader summary

  • Update - Update read settings to new version of configuration files

  • Write - Write bootloader settings to disk

List of Global Variables

28.2. Global Functions

28.2.1. BootGRUB

Constructor

Return value

  • void

28.2.2. CreateSections

Propose sections to bootloader menu modifies internal structures

Return value

  • void

28.2.3. GetFunctions

Return map of provided functions

Return value

  • map<string, any> - a map of functions (eg. $["write"::Write])

28.2.4. Initializer

Initializer of GRUB bootloader

Return value

  • void

28.2.5. Propose

Propose bootloader settings

Return value

  • void

28.2.6. Read

Read settings from disk

Function parameters

  • boolean reread

Return value

  • boolean - true on success

28.2.7. Reset

Reset bootloader settings

Function parameters

  • boolean init

Return value

  • void

28.2.8. Save

Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!

Function parameters

  • boolean clean

  • boolean init

  • boolean flush

Return value

  • boolean - true if success

28.2.9. StandardGlobals

Propose global options of bootloader

Return value

  • map<string,string>

28.2.10. Summary

Display bootloader summary

Return value

  • list<string> - a list of summary lines

28.2.11. Update

Update read settings to new version of configuration files

Return value

  • void

28.2.12. Write

Write bootloader settings to disk

Return value

  • boolean - true on success

28.3. Global Variables

28.3.1. disks_order

Disks order for ordering widget purproses

28.3.2. insert_saved_mbr

Insert saved MBR to bootloader menu?

28.3.3. merge_level

Shall proposal merge menus?

28.4. Module Requirements

28.4.1. Module Imports

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

28.4.2. Module Includes

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