YaST2 Developers Documentation: Auto-installation



functions
files
intro

Auto-installation

modules/AutoInstallRules.ycp
Process Auto-Installation Rules Author: Anas Nashif

Imports

  • Arch
  • AutoinstConfig
  • IP
  • Installation
  • Kernel
  • Label
  • Mode
  • Popup
  • Profile
  • Report
  • Storage
  • URL
  • XML

Includes

  • autoinstall/io.ycp

Global Functions

Local Functions

global AutoInstallRules () -> void

Constructor

global XML_cleanup (string in, string out) -> boolean

Cleanup XML file from namespaces put by xslt

Parameters:
in
out

global StdErrLog (string stderr) -> void

StdErrLog() Dialog for error messages

Parameters:
stderr

global getMAC () -> string

getMAC() Return MAC address of active device

Return value:
mac address

global getHostid () -> string

Return host id (hex ip )

Return value:
host ID

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 boolean @param string @param string @param string @param string

Parameters:
match
var
val
op
matchtype

local verifyrules () -> integer

Verify rules using the shell

global Read () -> void

Read rules file

global Files () -> list<string>

Return list of file to merge (Order matters)

Return value:
list of files

global GetRules () -> boolean

Return list of file to merge (Order matters)

global Merge (string result_profile) -> boolean

Merge Rule results

Parameters:
result_profile
Return value:
true on success

global Process (string result_profile) -> boolean

Process Rules

Parameters:
result_profile

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:
filename

YaST2 Developers Documentation