86. Initrd

functions for initial ramdisk setup and creation

86.1. Summary of Module Globals

List of Global Functions

  • AddModule - add module to ramdisk

  • Export - Export settigs to variable

  • Import - import settings of initrd

  • ListModules - List modules included in initrd

  • Read - read seettings from sysconfig

  • RemoveModule - remove module from list of initrd modules

  • Reset - reset settings to empty list of modules

  • Update - Update read settings to new version of configuration files

  • Write - write settings to sysconfig, rebuild initrd images

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

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

  • setSplash - Set the -s parameter of mkinitrd

List of Global Variables

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

86.2. Global Functions

86.2.1. AddModule

add module to ramdisk

Function parameters

  • string modname

  • string modargs

Return value

  • void

86.2.2. Export

Export settigs to variable

Return value

  • map - of initrd settings

86.2.3. Import

import settings of initrd

Function parameters

  • map settings

Return value

  • void

86.2.4. ListModules

List modules included in initrd

Return value

  • list<string> - of strings with modulenames

86.2.5. Read

read seettings from sysconfig

Return value

  • boolean - true on success

86.2.6. RemoveModule

remove module from list of initrd modules

Function parameters

  • string modname

Return value

  • void

86.2.7. Reset

reset settings to empty list of modules

Return value

  • void

86.2.8. Update

Update read settings to new version of configuration files

Return value

  • void

86.2.9. Write

write settings to sysconfig, rebuild initrd images

Return value

  • boolean - true on success

86.2.10. errorWithLogPopup

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

Function parameters

  • string header

  • string log

Return value

  • void

86.2.11. getModulesToSkip

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

  • list<string> - a list of modules

86.2.12. setSplash

Set the -s parameter of mkinitrd

Function parameters

  • string vga

Return value

  • void

86.3. Global Variables

86.3.1. changed

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

86.4. Module Requirements

86.4.1. Module Imports

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

86.4.2. Module Includes