YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

include/bootloader/routines/widgets.ycp
Common widgets for being used by several bootloaders
  • Jiri Srain
  • Olaf Dabrunz
  • Josef Reidinger

This module has an unstable interface.

Imports

  • BootStorage
  • Bootloader
  • CWM
  • FileUtils
  • Initrd
  • Label
  • Mode
  • Popup
  • Storage
  • StorageDevices

Includes

  • bootloader/routines/helps.ycp
  • bootloader/routines/section_helps.ycp

Local Variables

Local Functions

local SectionOptionInit (string widget) -> void

Init function for widget value

Parameters:
widget any id of the widget
local SectionOptionStore (string widget, map event) -> void

Store function of a widget

Parameters:
widget any widget key
event map event description of event that occured
local section_handlers -> map<string,any>

Map of fallback handlers for events on sections

local HandleSectionBrowse (string widget, map event) -> symbol

Handle function of a widget (InputField + browse button)

Parameters:
widget any widget key
event map event description of event that occured
Return value:
nil
local HandleSectionBrowseDirectory (string widget, map event) -> symbol

Handle function of a widget (InputField + browse button) Asks for directory instead file

Parameters:
widget any widget key
event map event description of event that occured
Return value:
nil
local SectionInputFieldBrowseWidget (string id) -> map<string,any>

Generic widget of a inputfield + browse button Use validation function from validation_map if it is necessary create own definition of widget

Parameters:
id
Return value:
CWS widget
local SectionNameValidate (string widget, map event) -> boolean

Validate function of the name widget

Parameters:
widget any widget key
event map event description of event that occured
Return value:
true if widget settings ok
local SectionNameStore (string widget, map event) -> void

Store function of the name widget

Parameters:
widget any widget key
event map event description of event that occured
local RootDeviceInit (string widget) -> void

Init function of the root device widget

Parameters:
widget any id of the widget
local RootDeviceStore (string widget, map event) -> void

Store function of the root device widget

Parameters:
widget any widget key
event map event description of event that occured
local RootDeviceHandle (string widget, map event) -> symbol

Handle function of the root device widget

Parameters:
widget any widget key
event map event description of event that occured
Return value:
to return to wizard sequencer, or nil
local VgaModeInit (string widget) -> void

Init function of widget

Parameters:
widget any id of the widget
local ChainloaderInit (string widget) -> void

Init function of widget

Parameters:
widget any id of the widget
local SectionTypesWidget () -> term

Widget for selecting section type

Return value:
widget
local SectionTypeHandle (string widget, map event) -> symbol

Handle function of a widget

Parameters:
widget string widget key
event map event description of event that occured
Return value:
to return to wizard sequencer, or nil
local _common_section_widgets -> map<string,map<string,any> >

Cache for CommonSectionWidgets

local CommonSectionWidgets () -> map<string,map<string,any> >

Get common widgets for loader sections

Return value:
a map describing common loader section related widgets