98. Initrd

functions for initial ramdisk setup and creation

98.1. Authors

  • Jiri Srain <jsrain@suse.cz>

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

98.3. Global Functions

98.3.1. AddModule

add module to ramdisk

Function parameters

  • string modname

  • string modargs

Return value

  • void

98.3.2. AdditionalParameters

Get additional parameters for mkinitrd

Return value

  • string - additional mkinitrd parameters

98.3.3. Export

Export settigs to variable

Return value

  • map - of initrd settings

98.3.4. Import

import settings of initrd

Function parameters

  • map settings

Return value

  • void

98.3.5. ListModules

List modules included in initrd

Return value

  • list<string> - of strings with modulenames

98.3.6. Read

read seettings from sysconfig

Return value

  • boolean - true on success

98.3.7. RemoveModule

remove module from list of initrd modules

Function parameters

  • string modname

Return value

  • void

98.3.8. Reset

reset settings to empty list of modules

Return value

  • void

98.3.9. SetAdditionalParameters

Set additional parameters for mkinitrd

Function parameters

  • string params

Return value

  • void

98.3.10. Update

Update read settings to new version of configuration files

Return value

  • void

98.3.11. Write

write settings to sysconfig, rebuild initrd images

Return value

  • boolean - true on success

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

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

98.3.14. setSplash

Set the -s parameter of mkinitrd

Function parameters

  • string vga

Return value

  • void

98.4. Global Variables

98.4.1. changed

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

98.5. Module Requirements

98.5.1. Module Imports

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

98.5.2. Module Includes