96. Initrd

functions for initial ramdisk setup and creation

96.1. Summary of Module Globals

List of Global Functions

  • AddModule - add module to ramdisk

  • AdditionalParameters - Get additional parameters for mkinitrd

  • 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

  • SetAdditionalParameters - Set additional parameters for mkinitrd

  • 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

96.2. Global Functions

96.2.1. AddModule

add module to ramdisk

Function parameters

  • string modname

  • string modargs

Return value

  • void

96.2.2. AdditionalParameters

Get additional parameters for mkinitrd

Return value

  • string - additional mkinitrd parameters

96.2.3. Export

Export settigs to variable

Return value

  • map - of initrd settings

96.2.4. Import

import settings of initrd

Function parameters

  • map settings

Return value

  • void

96.2.5. ListModules

List modules included in initrd

Return value

  • list<string> - of strings with modulenames

96.2.6. Read

read seettings from sysconfig

Return value

  • boolean - true on success

96.2.7. RemoveModule

remove module from list of initrd modules

Function parameters

  • string modname

Return value

  • void

96.2.8. Reset

reset settings to empty list of modules

Return value

  • void

96.2.9. SetAdditionalParameters

Set additional parameters for mkinitrd

Function parameters

  • string params

Return value

  • void

96.2.10. Update

Update read settings to new version of configuration files

Return value

  • void

96.2.11. Write

write settings to sysconfig, rebuild initrd images

Return value

  • boolean - true on success

96.2.12. errorWithLogPopup

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

Function parameters

  • string header

  • string log

Return value

  • void

96.2.13. 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

96.2.14. setSplash

Set the -s parameter of mkinitrd

Function parameters

  • string vga

Return value

  • void

96.3. Global Variables

96.3.1. changed

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

96.4. Module Requirements

96.4.1. Module Imports

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

96.4.2. Module Includes