YaST2 Developers Documentation: Configuration of product-creator

Configuration of product-creator

modules/Kiwi.ycp
Data for kiwi configuration, input and output functions.
  • Jiri Suchomel

This module has an unstable interface.

Imports

  • Arch
  • Directory
  • FileUtils
  • Label
  • Message
  • Package
  • Popup
  • ProductCreator
  • Progress
  • Report
  • Security
  • String
  • URL

Includes

  • product-creator/routines.ycp

Global Variables

Global Functions

Local Functions

global content_key -> string

argument for any_xml agent: key indicating content of element without attributes

local crypt_password (string pw) -> string

crypt given user password with current encryption algorithm

Parameters:
pw
local adapt_source_path (string source) -> string

change the yast source path format to kiwi (smart?) one

Parameters:
source
local get_source_value (string source, map config) -> map

generate the 'repository' tag

Parameters:
source
config
local get_config_dir (string name, string task) -> string

generate the name of directory with kiwi configuration

Parameters:
name
task
local MapAny2XML (string item_key, map item_descr, integer level) -> string

convert YCP map (of type read from any_xml agent) to XML

Parameters:
item_key
item_descr
level
global ReadConfigXML (string base_path) -> map<string,any>

import the data from given config.xml

Parameters:
base_path
global WriteConfigXML (map<string,any> KiwiConfig, string task) -> boolean

Write currect configuration to new config.xml

Parameters:
KiwiConfig
task
local save_logs_popup () -> boolean

ask user where to save kiwi log files

global PrepareAndCreate (string out_dir, string selected_profiles) -> boolean

run kiwi to finally create the selected image

Parameters:
out_dir output directory for the result
selected_profiles which profiles should be build (prepared part of command line option)
global SaveConfiguration (map KiwiConfig, string task) -> string

save the image configuration to the kiwi images directory

Parameters:
KiwiConfig
task
global ImportImageRepositories (map Config, string dir) -> map <string,map>

Import repositories from given kiwi image configuration

Parameters:
Config
dir path to directory containing this config.xml
global InitCurrentRepositories () -> map <string,map>

Initialize the list of current repositories

global ReadImageTemplates () -> boolean

Read the templates on which the images can be based

global Read () -> boolean

REad the confgiuration stuff for image creator