217. Profile

Profile handling

217.1. Summary of Module Globals

List of Global Functions

  • Import - Import Profile

  • Prepare - Prepare Profile for saving and remove empty data structs

  • Profile - Constructor

  • ReadProfileStructure - Read YCP data as the control file

  • ReadProperties - Read Profile properties and Version

  • ReadXML - Read XML into YCP data

  • Reset - Reset profile to initial status

  • Save - Save YCP data into XML

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

  • convertLVM - Provide Compatibility to older distributions.

  • convertRAID - Provide Compatibility to older distributions.

  • generalCompat - compatibility to new language,keyboard and timezone client in 10.1

  • setElementByList - this function is a replacement for this code: list<any> l = [ "key1",0,"key3" ]; m[ l ] = v;

List of Global Variables

    217.2. Global Functions

    217.2.1. Import

    Import Profile

    Function parameters

    • map<string, any> profile

    Return value

    • void

    217.2.2. Prepare

    Prepare Profile for saving and remove empty data structs

    Return value

    • void

    217.2.3. Profile

    Constructor

    Return value

    • void

    217.2.4. ReadProfileStructure

    Read YCP data as the control file

    Function parameters

    • string parsedControlFile

    Return value

    • boolean

    217.2.5. ReadProperties

    Read Profile properties and Version

    Function parameters

    • map properties

    Return value

    • void

    217.2.6. ReadXML

    Read XML into YCP data

    Function parameters

    • string file

    Return value

    • boolean

    217.2.7. Reset

    Reset profile to initial status

    Return value

    • void

    217.2.8. Save

    Save YCP data into XML

    Function parameters

    • string file

    Return value

    • boolean - true on success

    217.2.9. SaveProfileStructure

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

    Function parameters

    • string parsedControlFile

    Return value

    • boolean - true on success

    217.2.10. convertLVM

    Provide Compatibility to older distributions.

    Function parameters

    • list<map> lvm_standalone

    Return value

    • list<map> - LVM configuration integrated into partitioning resource

    217.2.11. convertRAID

    Provide Compatibility to older distributions.

    Function parameters

    • list<map> raid_standalone

    Return value

    • map - RAID configuration integrated into partitioning resource

    217.2.12. generalCompat

    compatibility to new language,keyboard and timezone client in 10.1

    Return value

    • void

    217.2.13. setElementByList

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

    Function parameters

    • list<any> l

    • any v

    • map<string,any> m

    Return value

    • map<string,any>

    217.3. Global Variables

    217.4. Module Requirements

    217.4.1. Module Imports

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

    217.4.2. Module Includes

    • autoinstall/xml.ycp