YaST2 Developers Documentation: Auto-Installation

Auto-Installation

modules/Profile.ycp
Profile handling

This module has an unstable interface.

Imports

  • AutoinstConfig
  • Directory
  • Mode
  • PackageSystem
  • Popup
  • ProductControl
  • Stage
  • XML

Includes

  • autoinstall/xml.ycp

Global Functions

Local Functions

global Profile () -> void

Constructor

local DetectVersion () -> string

Detect Version

local storageLibCompat () -> void

compatibility to new storage lib in 10.0

global generalCompat () -> void

compatibility to new language,keyboard and timezone client in 10.1

global ReadProperties (map properties) -> void

Read Profile properties and Version

Parameters:
properties
global Import (map<string, any> profile) -> void

Import Profile

Parameters:
profile
global Prepare () -> void

Prepare Profile for saving and remove empty data structs

global Reset () -> void

Reset profile to initial status

global Save (string file) -> boolean

Save YCP data into XML

Parameters:
file
Return value:
true on success
global SaveProfileStructure (string parsedControlFile) -> boolean

Save the current data into a file to be read after a reboot.

Parameters:
parsedControlFile
Return value:
true on success
See
Restore()
global ReadProfileStructure (string parsedControlFile) -> boolean

Read YCP data as the control file

Parameters:
parsedControlFile
global convertLVM (list<map> lvm_standalone) -> list<map>

Provide Compatibility to older distributions.

Parameters:
lvm_standalone
Return value:
LVM configuration integrated into partitioning resource
global convertRAID (list<map> raid_standalone) -> map

Provide Compatibility to older distributions.

Parameters:
raid_standalone
Return value:
RAID configuration integrated into partitioning resource
local Compat (map<string, any> _current) -> map<string, any>

General compatibility issues

Parameters:
_current
Return value:
converted profile
global ReadXML (string file) -> boolean

Read XML into YCP data

Parameters:
file
global setElementByList (list<any> l, any v, map<string,any> m) -> map<string,any>

this function is a replacement for this code: list l = [ "key1",0,"key3" ]; m[ l ] = v;

Parameters:
l
v
m