YaST2 Developers Documentation: installation

installation

modules/ProductFetures.ycp
Product features

This module has an unstable interface.

Imports

  • Misc
  • Mode
  • Stage

Global Functions

Local Variables

Local Functions

local features -> map<string,map<string,any> >

Map of all features See defaults map below for sample contents

local features_to_save -> list<list<string> >

Features to be saved in running system one item per feature, consists of key in file, section and option

local defaults -> map<string,map<string,any> >

Default values for features two-level map, section_name -> [ feature -> value ]

local InitFeatures (boolean force) -> void

Initialize default values of features

Parameters:
force boolean drop all settings which were set before
global SetSection (string section_name, map<string,any> section_map) -> void

Set a feature section Default values will be used where value not defined

Parameters:
section_name
section_map a map containing data of the section
global GetSection (string section_name) -> map<string,any>

Get a complete section for evaluation

Parameters:
section_name string name of the section
Return value:
a map key->value, options in the section
global Save () -> void

Save product features

global Restore () -> void

Restore product features in running system

global InitIfNeeded () -> void

Initialize the features structure if needed Either read from /etc/YaST2/ProductFeatures or set default values

global GetFeature (string section, string feature) -> any

Get value of a feature

Parameters:
section string section of the feature
feature
Return value:
the feature value
global GetStringFeature (string section, string feature) -> string

Get value of a feature

Parameters:
section string section of the feature
feature
Return value:
the feature value
global GetBooleanFeature (string section, string feature) -> boolean

Get value of a feature

Parameters:
section string section of the feature
feature
Return value:
the feature value
global SetFeature (string section, string feature, any value) -> void

Set value of a feature

Parameters:
section string section of the feature
feature
value any the feature value
global SetStringFeature (string section, string feature, string value) -> void

Set value of a feature

Parameters:
section string section of the feature
feature
value string the feature value
global SetBooleanFeature (string section, string feature, boolean value) -> void

Set value of a feature

Parameters:
section string section of the feature
feature
value boolean the feature value