YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Arch
  • BootCommon
  • BootCommon
  • Bootloader
  • FileUtils
  • Map
  • Map
  • Message
  • Mode
  • PackagesProposal
  • Popup
  • ProductControl
  • ProductFeatures
  • Progress
  • Report
  • Service
  • Summary

Global Variables

Global Functions

Local Variables

Local Functions

Info:

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 $

global GetModified () -> boolean

Prototypes

global modified -> boolean

Data was modified?

local kdump_file -> string

kdump config file

global proposal_valid -> boolean

global available_partitions -> list <string>

List of available partiotions with known partition

global propose_called -> boolean

true if propose was called

global uknown_fs_partitions -> list <string>

List of available partiotions without filesystem or with uknown

global total_memory -> integer

Total available memory [MB]

global kdump_packages -> list<string>

list of packages for installation

local number_of_cpus -> integer

Number of cpus

local kernel_version -> string

kernel version (uname -r)

local section_pos -> integer

Position actual boot section in BootCommon::sections list it is relevant only if XEN boot section is used

global crashkernel_param_value -> string

String option indicates value of kernel parameter "crashkernel"

global add_crashkernel_param -> boolean

Boolean option indicates add kernel param "crashkernel"

global alocated_memory -> string

String option for alocate of memory for boot param "crashkernel"

global import_called -> boolean

Boolean option indicates that Import() was called and data was proposed

global actual_boot_section -> string

String option identify which boot section was used during boot process

global write_only -> boolean

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

Info:

Abort function return boolean return true if abort

global DEFAULT_CONFIG -> map <string, string >

map of deafult values for options in UI

global KDUMP_SETTINGS -> map <string, string >

map of kdump settings

global Abort () -> boolean

Abort function

Return value:
return true if abort
global GetModified () -> boolean

Data was modified?

Return value:
true if modified
global SetModified () -> void

Set data was modified

local CmpKernelAndBootOptions (list <string> kernel_option, list <string> boot_options) -> integer

Compare boot section options with

Parameters:
kernel_option
boot_options
Return value:
return number of differences
local AddDeviceVgamode (map section) -> list <string>

Function add into option from boot section root device and vgamode

Parameters:
section
Return value:
boot section + root and vgamode
local Chmod (string target, string permissions) -> boolean

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
local GetActualBootSection () -> string

Read actual boot section

Return value:
actual boot section
local getCrashKernelValue (string crash) -> string

get value of crashkernel option from XEN boot section

Parameters:
crash
Return value:
value of carshkernel option
local checkPassword () -> boolean

Function check if KDUMP_SAVEDIR or KDUMP_SMTP_PASSWORD include password

Return value:
true if inlude password
local getAlocatedMemory (string crash_value) -> string

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)
local BuildCrashkernelValue () -> string

Build crashkernel value from alocated memory

Return value:
value of crashkernel
local CheckXenDefault (string act_boot_secion) -> void

Check if default boot section is Xen section remember position of section (important for saving to xen_append)

Parameters:
act_boot_secion
local ReadXenKdumpKernelParam (string act_boot_secion) -> boolean

Read current kdump configuration from XEN boot section read kernel parameter "crashkernel"

Parameters:
act_boot_secion
Return value:
successfull
local ReadKdumpKernelParam () -> boolean

Read current kdump configuration

Return value:
successfull
local ProposeAlocatedMemory () -> boolean

Propose reserved/allocated memory

Return value:
successfull
local ReadAvailableMemory () -> boolean

Read available memory

Return value:
successfull
local ReadKdumpSettings () -> boolean

Read current kdump configuration

Return value:
successfull
local WriteKdumpSettings () -> boolean

Write current kdump configuration

Return value:
successfull
local WriteKdumpBootParameter () -> boolean

Write kdump boot argument crashkernel set kernel-kdump start at boot

Return value:
successfull
global Read () -> boolean

Read all kdump settings

Return value:
true on success
global Update () -> boolean

Update crashkernel argument during update of OS

Return value:
true on success
global Write () -> boolean

Write all kdump settings

Return value:
true on success
local AddPackages () -> void

Adding necessary packages for installation

local ProposeGlobalVars () -> void

Propose global variables once... after that remember user settings

global CheckPackages () -> void

Check if user enabled kdump if no deselect packages for installing if yes add necessary packages for installation

global Propose () -> void

Propose all kdump settings

global Summary () -> list<string>

Create a textual summary and a list of unconfigured cards

Return value:
summary of the current configuration
global Export () -> map

Export kdump settings to a map

Return value:
kdump settings
global Import (map settings) -> boolean

Import settings from a map

Parameters:
settings map of kdump settings
Return value:
true on success