YaST2 Developers Documentation: Bootloader installation and configuration



functions
files
intro

Bootloader installation and configuration

modules/BootCommon.ycp
Data to be shared between common and bootloader-specific parts of bootloader configurator/installator, generic versions of bootloader specific functions

Imports

  • Arch
  • HTML
  • Mode
  • Pkg
  • Require
  • Storage

Includes

  • bootloader/routines/helps.ycp
  • bootloader/routines/lilolike.ycp
  • bootloader/routines/misc.ycp
  • bootloader/routines/options.ycp
  • bootloader/routines/popups.ycp
  • bootloader/routines/routines.ycp
  • bootloader/routines/widgets.ycp

Global Variables

Global Functions

Local Variables

global BootPartitionDevice -> string

string sepresenting device name of /boot partition same as RootPartitionDevice if no separate /boot partition

global RootPartitionDevice -> string

string representing device name of / partition

global location -> string

location description on i386 can be mbr, root, boot, floppy, custom, none other architectures may differ

global current_bootloader_attribs -> map<string, any>

Parameters of currently used bootloader

global bootloader_attribs -> map<string, any>

Parameters of all bootloaders

global current_section_name -> any

Name of currently edited section, `global for global section

global current_section -> list<map>

Curtrently edited section -- tmp store

global globals -> list<map>

map of global options and values

global current_globals -> list<map>

Updated, but not yet confirmed globals -- tmp store

global sections -> list<list<map> >

list of section

global floppy_devices -> list<string>

list of installed floppy devices

global opt_types -> map<string,map<string,string> >

Option types for differnt bootloaders

global mbrDisk -> string

device holding MBR for bootloader

global loader_device -> string

Device to install bootloader to

global one_section_changed -> boolean

was currently edited section changed (== true)

global backup_mbr -> boolean

Backup original MBR before installing bootloader

global activate -> boolean

Activate bootloader partition during installation?

global repl_mbr -> boolean

Replace MBR with generic code after bootloader installation?

global kernelCmdLine -> string

Kernel parameters at previous detection

global changed -> boolean

were settings changed (== true)

global cwm_options -> map<string, any>

Table/Popup options used by currently used bootloader

local loader_type -> string

type of bootloader to configuer/being configured shall be one of "lilo", "grub", "silo", "milo", "aboot", "elilo", "ppc", "s390", "mips"

global prefer_lilo -> boolean

Last detection proposed to prefer lilo instead of grub

global del_parts -> list<string>

List of partitions deleted in primary proposal

global write_settings -> map

map of save mode settings

global verbose -> boolean

Show verbose summary output

global current_sections -> list<list<map> >

Updated, but not yet confirmed sections -- tmp store

global current_option_name -> string

Name of option, which is currently being edited in popup

global current_option_index -> integer

Index of current option in the section

global other_bl -> map

Settings of other bootloaders used when switching bootloader

global activate_changed -> boolean

Was the activate flag changed by user?

global save_all -> boolean

Save everything, not only changed settings

global cwm_widgets -> map

Widgets used by currently used bootloader

global was_proposed -> boolean

was the propose function called (== true)

global was_read -> boolean

Were module settings read (== true)

global sections_changed -> boolean

were sections settings changes (== true)

global location_changed -> boolean

Was bootloader location changed? (== true)

global files_edited -> boolean

Were configuration files manually edited and chamged?

global files_edited_warned -> boolean

Has been files edited warning already shown?

global save_on_finish -> boolean

Shall be settings saved when finishing bootloader configuration?

global partitioning_last_change -> integer

time of last change of partitioning

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

Read settings from disk

Return value:
true on success

global Reset () -> void

Reset bootloader settings

global Propose () -> void

Propose bootloader settings

global Save () -> boolean

Save all bootloader configuration files

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

global Write () -> boolean

Write bootloader settings to disk

Return value:
true on success

global GetOptions () -> map

Get map of bootloader options

Return value:
of options

global fetchSettings () -> symbol

Fetch settings to temporary variables

Return value:
sumbol wizard sequencer symbol

global storeSettings () -> symbol

Store settings from temporary variables to globals

Return value:
wizard sequencer symbol

global setCurrentLoaderAttribs (string loader_type) -> void

Set attributes of specified bootloader to variable containing attributes of currently used bootloader, call its initializer

Parameters:
loader_type string loader type to initialize

global getLoaderType (boolean recheck) -> string

Get currently used bootloader, detect if not set yet

Parameters:
recheck boolean force checking bootloader
Return value:
botloader type

global setLoaderType (string bootloader) -> void

set type of bootloader

Parameters:
bootloader string type of bootloader

global getBootloaders () -> list<string>

List bootloaders available for configured architecture

Return value:
of bootloaders

YaST2 Developers Documentation