33. BootGRUB

Module containing specific functions for GRUB configuration and installation

33.1. Authors

  • Jiri Srain <jsrain@suse.cz>

  • Joachim Plack <jplack@suse.de>

  • Olaf Dabrunz <od@suse.de>

  • Philipp Thomas <pth@suse.de>

33.2. Summary of Module Globals

List of Global Functions

  • BootGRUB - Constructor

  • CheckAdditionalKernels - Check for additional kernels which could go to the proposed settings

  • CreateSections - Propose sections to bootloader menu modifies internal structures

  • FlagOnetimeBoot - Boot passed section once on next reboot.

  • 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

33.3. Global Functions

33.3.1. BootGRUB

Constructor

Return value

  • void

33.3.2. CheckAdditionalKernels

Check for additional kernels which could go to the proposed settings

Return value

  • list<map<string,string> > - a list of kernels to propose

33.3.3. CreateSections

Propose sections to bootloader menu modifies internal structures

Return value

  • void

33.3.4. FlagOnetimeBoot

Boot passed section once on next reboot.

Function parameters

  • string section

Return value

  • boolean - true on success

33.3.5. GetFunctions

Return map of provided functions

Return value

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

33.3.6. Initializer

Initializer of GRUB bootloader

Return value

  • void

33.3.7. Propose

Propose bootloader settings

Return value

  • void

33.3.8. Read

Read settings from disk

Function parameters

  • boolean reread

  • boolean avoid_reading_device_map

Return value

  • boolean - true on success

33.3.9. Reset

Reset bootloader settings

Function parameters

  • boolean init

Return value

  • void

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

33.3.11. StandardGlobals

Propose global options of bootloader

Return value

  • map<string,string>

33.3.12. Summary

Display bootloader summary

Return value

  • list<string> - a list of summary lines

33.3.13. Update

Update read settings to new version of configuration files

Return value

  • void

33.3.14. Write

Write bootloader settings to disk

Return value

  • boolean - true on success

33.4. Global Variables

33.4.1. disks_order

Disks order for ordering widget purproses

33.4.2. insert_saved_mbr

Insert saved MBR to bootloader menu?

33.4.3. merge_level

Shall proposal merge menus?

33.5. Module Requirements

33.5.1. Module Imports

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

33.5.2. Module Includes

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