YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

modules/BootELILO.ycp
Module containing specific functions for ELILO configuration and installation
  • Joachim Plack
  • Jiri Srain
  • Andreas Schwab
  • Olaf Dabrunz
  • Philipp Thomas

This module has an unstable interface.

Imports

  • Arch
  • BootArch
  • BootCommon
  • BootStorage
  • Installation
  • Kernel
  • Mode
  • Product
  • Product
  • Report
  • Stage
  • Storage
  • String

Includes

  • bootloader/elilo/dialogs.ycp
  • bootloader/elilo/helps.ycp
  • bootloader/elilo/widgets.ycp
  • bootloader/routines/popups.ycp

Global Variables

Global Functions

Local Variables

global old_efi_entry -> string

Name of EFI entry when read settings

global elilo_conf_filename -> string

elilo.conf path

global create_efi_entry -> boolean

True if EFI entry should be recreated

global added_label_to_efi -> boolean

bnc #450682 - adding boot entry to EFI true is label was added

local efi_available -> boolean

Is the /sys/firmware/efi directory available?

global getEfiMountPoint () -> string

Return mountpoint of partition holding EFI data

Return value:
mountpoint if partition holding EFI data
global getEliloConfSubdir () -> string

Get directory containing elilo.conf relative to EFI partition's root

Return value:
directory containing elilo.conf relative to EFI root
global getEliloConfSubpath () -> string

Get path of elilo.conf relative to EFI partition's root

Return value:
path of elilo.conf relative to EFI partition's root
global getEliloConfFilename () -> string

Return path to elilo.conf file

Return value:
path to elilo.conf
global CreateSections () -> void

Propose sections to bootloader menu modifies internal structures

global CreateGlobals () -> void

Propose global options of bootloader modifies internal structures

global Export () -> map

Export bootloader settings to a map

Return value:
bootloader settings
global Import (map settings) -> boolean

Import settings from a map

Parameters:
settings map of bootloader settings
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 Reset (boolean init) -> void

Reset bootloader settings

Parameters:
init
global Propose () -> void

Propose bootloader settings

global Save (boolean clean, boolean init, boolean flush) -> boolean

Save all bootloader configuration files

Parameters:
clean
init
flush
Return value:
true if success
global Summary () -> list<string>

Display bootloader summary

Return value:
a list of summary lines
global Update () -> void

Update read settings to new version of configuration files

Info:

Install the bootloader, display a popup with log if something goes wrong

Parameters:
command string command to install the bootloader
logfile string filename of file used to write bootloader log
Return value:
true on success
global Write () -> boolean

Write bootloader settings to disk

Return value:
true on success
global FlagBootDefaultOnce (string section) -> boolean

Set section to boot on next reboot.

Parameters:
section string section to boot
Return value:
true on success
global GetFunctions () -> map<string, any>

Return map of provided functions

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

Initializer of ELILO bootloader

global BootELILO () -> void

Constructor