213. Profile

Profile handling

213.1. Authors

  • Anas Nashif <nashif@suse.de>

213.2. Summary of Module Globals

List of Global Functions

List of Global Variables

    213.3. Global Functions

    213.3.1. Import

    Import Profile

    Function parameters

    • map<string, any> profile

    Return value

    • void

    213.3.2. Prepare

    Prepare Profile for saving and remove empty data structs

    Return value

    • void

    213.3.3. Profile

    Constructor

    Return value

    • void

    213.3.4. ReadProfileStructure

    Read YCP data as the control file

    Function parameters

    • string parsedControlFile

    Return value

    • boolean

    213.3.5. ReadProperties

    Read Profile properties and Version

    Function parameters

    • map properties

    Return value

    • void

    213.3.6. ReadXML

    Read XML into YCP data

    Function parameters

    • string file

    Return value

    • boolean

    213.3.7. Reset

    Reset profile to initial status

    Return value

    • void

    213.3.8. Save

    Save YCP data into XML

    Function parameters

    • string file

    Return value

    • boolean - true on success

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

    See also:

    • Restore()

    213.3.10. SaveSingleSections

    Save sections of current profile to separate files

    Function parameters

    • string dir

    Return value

    • map<string,string> - - list of filenames

    213.3.11. convertLVM

    Provide Compatibility to older distributions.

    Function parameters

    • list<map> lvm_standalone

    Return value

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

    213.3.12. convertRAID

    Provide Compatibility to older distributions.

    Function parameters

    • list<map> raid_standalone

    Return value

    • map - RAID configuration integrated into partitioning resource

    213.3.13. generalCompat

    compatibility to new language,keyboard and timezone client in 10.1

    Return value

    • void

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

    213.4. Global Variables

    213.5. Module Requirements

    213.5.1. Module Imports

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

    213.5.2. Module Includes

    • autoinstall/xml.ycp