27. BootGRUB

Module containing specific functions for GRUB configuration and installation

27.1. Summary of Module Globals

List of Global Functions

  • BootGRUB - Constructor

  • CreateGlobals - Propose global options of bootloader modifies internal structures

  • CreateSections - Propose sections to bootloader menu modifies internal sreuctures

  • 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 !!!

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

  • Write - Write bootloader settings to disk

List of Global Variables

27.2. Global Functions

27.2.1. BootGRUB

Constructor

Return value

  • void

27.2.2. CreateGlobals

Propose global options of bootloader modifies internal structures

Return value

  • void

27.2.3. CreateSections

Propose sections to bootloader menu modifies internal sreuctures

Return value

  • void

27.2.4. GetFunctions

Return map of provided functions

Return value

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

27.2.5. Initializer

Initializer of GRUB bootloader

Return value

  • void

27.2.6. Propose

Propose bootloader settings

Return value

  • void

27.2.7. Read

Read settings from disk

Function parameters

  • boolean reread

Return value

  • boolean - true on success

27.2.8. Reset

Reset bootloader settings

Function parameters

  • boolean init

Return value

  • void

27.2.9. 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

27.2.10. Update

Update read settings to new version of configuration files

Return value

  • void

27.2.11. Write

Write bootloader settings to disk

Return value

  • boolean - true on success

27.3. Global Variables

27.3.1. disks_order

Disks order for ordering widget purproses

27.3.2. gc_changed

was grub_conf changed by user manually?

27.3.3. insert_saved_mbr

Insert saved MBR to bootloader menu?

27.3.4. merge_level

Shall proposal merge menus?

27.4. Module Requirements

27.4.1. Module Imports

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

27.4.2. Module Includes

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