YaST2 Developers Documentation: Auto-Installation

Auto-Installation

modules/AutoinstScripts.ycp
Custom scripts
  • Anas Nashif

This module has an unstable interface.

Imports

  • AutoinstConfig
  • Label
  • Mode
  • Popup
  • Report
  • Summary
  • URL

Includes

  • autoinstall/io.ycp

Global Functions

Local Functions

global SetModified () -> void

Function sets internal variable, which indicates, that any settings were modified, to "true"

global GetModified () -> boolean

Functions which returns if the settings were modified

Return value:
settings were modified
local mergeScripts () -> list<map>

merge all types of scripts into one single list

Return value:
merged list
local AutoinstScripts () -> void

Constructor

global Export () -> map<string, list>

Dump the settings to a map, for autoinstallation use.

global Import (map s) -> boolean

Get all the configuration from a map. When called by autoinst_ (preparing autoinstallation data) the map may be empty.

Parameters:
s
Return value:
success
global Summary () -> string

Return Summary

Return value:
summary
global deleteScript (string scriptName) -> void

delete a script from a list

Parameters:
scriptName
global AddEditScript (string scriptName, string source, string interpreter, string type, boolean chrooted, boolean debug, boolean feedback, boolean network, string feedback_type, string location, string notification) -> void

Add or edit a script

Parameters:
scriptName script name
source source of script
interpreter interpreter to be used with script
type type of script
chrooted
debug
feedback
network
feedback_type
location
notification
global typeString (string type) -> string

return type of script as formatted string

Parameters:
type
Return value:
type as translated string
global Write (string type, boolean special) -> boolean

Execute pre scripts

Parameters:
type
special
Return value:
true on success