Unknown YCP Module |
This module has an unstable interface. |
File: modules/Kdump.ycp
Package: Configuration of kdump
Summary: Kdump settings, input and output functions
Authors: Jozef Uhliarik
$Id: Kdump.ycp 27914 2006-02-13 14:32:08Z locilka $
Prototypes
Data was modified?
kdump config file
List of available partiotions with known partition
true if propose was called
List of available partiotions without filesystem or with uknown
Total available memory [MB]
list of packages for installation
Number of cpus
kernel version (uname -r)
Position actual boot section in BootCommon::sections list it is relevant only if XEN boot section is used
String option indicates value of kernel parameter "crashkernel"
Boolean option indicates add kernel param "crashkernel"
String option for alocate of memory for boot param "crashkernel"
Boolean option indicates that Import() was called and data was proposed
String option identify which boot section was used during boot process
Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
Abort function return boolean return true if abort
map of deafult values for options in UI
map
Abort function
- Return value:
-
return true if abort
Data was modified?
- Return value:
-
true if modified
Set data was modified
Compare boot section options with
- Parameters:
-
kernel_option boot_options
- Return value:
-
return number of differences
Function add into option from boot section root device and vgamode
- Parameters:
-
section
- Return value:
-
boot section + root and vgamode
Function set permission for file.
- Parameters:
-
target permissions
- Return value:
-
true on success
- Example
-
FileUtils::Chmod ("/etc/sysconfig/kdump", "600") -> true FileUtils::Chmod ("/tmp/doesnt_exist", "644") -> false
Read actual boot section
- Return value:
-
actual boot section
get value of crashkernel option from XEN boot section
- Parameters:
-
crash
- Return value:
-
value of carshkernel option
Function check if KDUMP_SAVEDIR or KDUMP_SMTP_PASSWORD include password
- Return value:
-
true if inlude password
get alocated memory from value of crashkernel option there can be several ranges -> take the first range
- Parameters:
-
crash_value
- Return value:
-
value of alocated memory (64M)
Build crashkernel value from alocated memory
- Return value:
-
value of crashkernel
Check if default boot section is Xen section remember position of section (important for saving to xen_append)
- Parameters:
-
act_boot_secion
Read current kdump configuration from XEN boot section read kernel parameter "crashkernel"
- Parameters:
-
act_boot_secion
- Return value:
-
successfull
Read current kdump configuration
- Return value:
-
successfull
Propose reserved/allocated memory
- Return value:
-
successfull
Read available memory
- Return value:
-
successfull
Read current kdump configuration
- Return value:
-
successfull
Write current kdump configuration
- Return value:
-
successfull
Write kdump boot argument crashkernel set kernel-kdump start at boot
- Return value:
-
successfull
Read all kdump settings
- Return value:
-
true on success
Update crashkernel argument during update of OS
- Return value:
-
true on success
Write all kdump settings
- Return value:
-
true on success
Adding necessary packages for installation
Propose global variables once... after that remember user settings
Check if user enabled kdump if no deselect packages for installing if yes add necessary packages for installation
Propose all kdump settings
Create a textual summary and a list of unconfigured cards
- Return value:
-
summary of the current configuration
Export kdump settings to a map
- Return value:
-
kdump settings
Import settings from a map
- Parameters:
-
settings map of kdump settings
- Return value:
-
true on success