34. Bootloader

Bootloader installation and configuration base module

34.1. Summary of Module Globals

List of Global Functions

List of Global Variables

34.2. Global Functions

34.2.1. Bootloader

Constructor

Return value

  • void

34.2.2. Export

Export bootloader settings to a map

Return value

  • map - bootloader settings

34.2.3. FlagOnetimeBoot

Set section to boot on next reboot

Function parameters

  • string section

Return value

  • boolean - true on success

34.2.4. Import

Import settings from a map

Function parameters

  • map settings

Return value

  • boolean - true on success

34.2.5. PreUpdate

Process update actions needed before packages update starts

Return value

  • void

34.2.6. Propose

Propose bootloader settings

Return value

  • void

34.2.7. Read

Read settings from disk

Return value

  • boolean - true on success

34.2.8. ReadOrProposeIfNeeded

Check whether settings were read or proposed, if not, decide what to do and read or propose settings

Return value

  • void

34.2.9. Reset

Reset bootloader settings

Return value

  • void

34.2.10. ResetEx

Reset bootloader settings

Function parameters

  • boolean init

Return value

  • void

34.2.11. ResolveSymlink

Resolve a single symlink in key image_key in section map s

Function parameters

  • map<string,any> section

  • string key

Return value

  • map<string,any> - section map of the changed section

34.2.12. RunDelayedUpdates

Set section to boot on next reboot

Return value

  • void - true on success

34.2.13. SetWriteMode

Set settings how to write bootloader

Function parameters

  • map<string,any> settings

Return value

  • void

34.2.14. Summary

Display bootloader summary

Return value

  • list<string> - a list of summary lines

34.2.15. Update

Update the whole configuration

Function parameters

  • map<string,any> iv

  • map<string,any> uv

Return value

  • boolean - true on success

34.2.16. UpdateConfiguration

Update read settings to new version of configuration files

Return value

  • void

34.2.17. UpdateGfxMenu

Update the language of GFX menu according to currently selected language

Return value

  • boolean - true on success

34.2.18. Write

Write bootloader settings to disk

Return value

  • boolean - true on success

34.2.19. WriteInstallation

Write bootloader settings during installation

Return value

  • boolean - true on success

34.2.20. getBootDevice

Get device containing /boot directory

Return value

  • string - boot device

34.2.21. getDefaultSection

return default section label

Return value

  • string - default section label

34.2.22. getKernelParam

get kernel parameters from bootloader configuration file

Function parameters

  • string section

  • string key

Return value

  • string - value, "false" if not present, "true" if present key without value

34.2.23. getLoaderType

Get currently used bootloader, detect if not set yet

Return value

  • string - botloader type

34.2.24. getProposedDefaultSection

Get default section as proposed during installation

Return value

  • string - section that was proposed as default during installation, if not known, return current default section if it is of type "image", if not found return first linux section, if no present, return empty string

34.2.25. getRootDevice

Get root fs device

Return value

  • string - root device

34.2.26. getSectionsList

Get list of bootloader sections

Function parameters

  • symbol type

Return value

  • list - of strings representing sections names

34.2.27. listKernelParams

List kernel parameters

Function parameters

  • string section

Return value

  • list<string> - a list of kernel parameters (in the form 'hdd=ide-scsi')

34.2.28. setBootDevice

Set device containing /boot directory

Function parameters

  • string device

Return value

  • void

34.2.29. setLoaderType

Set type of bootloader Just a wrapper to BootCommon::setLoaderType

Function parameters

  • string bootloader

Return value

  • void

34.2.30. setRootDevice

Set root fs device

Function parameters

  • string device

Return value

  • void

34.3. Global Variables

34.3.1. cached_proposal

Cache for the installation proposal

34.3.2. proposed_cfg_changed

Configuration was changed during inst. proposal if true

34.3.3. repeating_write

Write is repeating again Because of progress bar during inst_finish

34.4. Module Requirements

34.4.1. Module Imports

  • Arch
  • BootCommon
  • BootELILO
  • BootGRUB
  • BootLILO
  • BootPOWERLILO
  • Directory
  • Initrd
  • Installation
  • Kernel
  • Mode
  • ProductFeatures
  • Progress
  • Stage
  • Storage

34.4.2. Module Includes

  • bootloader/routines/popups.ycp
  • bootloader/routines/switcher.ycp