YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

modules/Initrd.ycp
functions for initial ramdisk setup and creation
  • Jiri Srain

This module has an unstable interface.

Imports

  • Arch
  • Directory
  • Label
  • Misc
  • Mode
  • Report
  • Stage

Global Variables

Global Functions

Local Variables

local modules -> list<string>

List of modules for Initrd

local modules_to_store -> map<string,boolean>

For each of modules - true if should be inserted to initrd, false otherwise. Used to keep order from first-stage installation

local read_modules -> list<string>

List of modules that were in sysconfig file when reading settings

local modules_settings -> map<string, any>

map of settings for modules for being contained in initrd

global changed -> boolean

true if settings were changed and initrd needs to be rebuilt, false otherwise

local was_read -> boolean

true if settings were already read, flase otherwise

local splash -> string

parametr for mkinitrd because of splash screen used for choosing right size of splash

local additional_parameters -> string

Additional parameters for mkinitrd

local modules_to_skip -> list<string>

List of modules which should be not added/removed to/from initrd

local known_modes -> list<map>

List of fallback vga modes to be used when hwinfo --framebuffer doesn't return any value

global getModulesToSkip () -> list<string>

Get the list of modules which don't belong to initrd Initialize the list if was not initialized before according to the architecture

Return value:
a list of modules
global Reset () -> void

reset settings to empty list of modules

global Read () -> boolean

read seettings from sysconfig

Return value:
true on success
global ListModules () -> list<string>

List modules included in initrd

Return value:
of strings with modulenames
global AddModule (string modname, string modargs) -> void

add module to ramdisk

Parameters:
modname name of module
modargs arguments to be passes to module
global Export () -> map

Export settigs to variable

Return value:
of initrd settings
global Import (map settings) -> void

import settings of initrd

Parameters:
settings map of initrd settings
global RemoveModule (string modname) -> void

remove module from list of initrd modules

Parameters:
modname string name of module to remove
global Update () -> void

Update read settings to new version of configuration files

global errorWithLogPopup (string header, string log) -> void

Display error popup with log FIXME this is copy-paste from ../routines/popups.ycp

Parameters:
header string error header
log string logfile contents
global Write () -> boolean

write settings to sysconfig, rebuild initrd images

Return value:
true on success
global setSplash (string vga) -> void

Set the -s parameter of mkinitrd

Parameters:
vga string the vga kernel parameter
global AdditionalParameters () -> string

Get additional parameters for mkinitrd

Return value:
additional mkinitrd parameters
global SetAdditionalParameters (string params) -> void

Set additional parameters for mkinitrd

Parameters:
params string additional mkinitrd parameters