Auto-installation |
modules/AutoInstallRules.ycp |
| Process Auto-Installation Rules |
|
|
Imports
- Arch
- AutoinstConfig
- IP
- Installation
- Kernel
- Label
- Mode
- Popup
- Product
- Profile
- Report
- Stage
- Storage
- URL
- XML
Includes
Global Functions
Local Functions
|
|
|
|
global XML_cleanup (string in, string out) -> boolean
|
|
Cleanup XML file from namespaces put by xslt
- Parameters:
|
global StdErrLog (string stderr) -> void
|
|
StdErrLog()
Dialog for error messages
- Parameters:
|
global getMAC () -> string
|
|
getMAC()
Return MAC address of active device
- Return value:
|
global getHostid () -> string
|
|
Return host id (hex ip )
- Return value:
|
global ProbeRules () -> void
|
|
Probe all system data to build a set of rules
|
local shellseg (boolean match, string var, any val, string op, string matchtype) -> void
|
|
Create shell command for rule verification
@param match
@param var
@param val
@param op
@param matchtype
- Parameters:
|
match |
|
|
var |
|
|
val |
|
|
op |
|
|
matchtype |
|
|
local verifyrules () -> integer
|
|
Verify rules using the shell
Read rules file
|
global Files () -> list<string>
|
|
Return list of file to merge (Order matters)
- Return value:
|
global GetRules () -> boolean
|
|
Return list of file to merge (Order matters)
|
global Merge (string result_profile) -> boolean
|
|
Merge Rule results
- Parameters:
|
result_profile |
the resulting control file path |
- Return value:
|
global Process (string result_profile) -> boolean
|
|
Process Rules
- Parameters:
|
global CreateDefault () -> void
|
|
Create default rule in case no rules file is available
This adds a list of file starting from full hex ip representation to
only the first letter. Then default and finally mac address.
|
global CreateFile (string filename) -> void
|
|
Create default rule in case no rules file is available (Only one file which is given by the user)
- Parameters:
|
global AutoInstallRules () -> void
|
|
Constructor
Initialize
|