YaST2 Developers Documentation: Bootloader installation and configuration



functions
files
intro

Bootloader installation and configuration

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

Imports

  • Arch
  • Label
  • Misc
  • Mode
  • Report

Global Variables

Global Functions

Local Variables

local modules -> list<string>

List of modules for Initrd

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 modules_to_skip -> list

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

global Initrd () -> void

Constructor

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

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

YaST2 Developers Documentation