YaST2 Developers Documentation: Configuration of product-creator

Configuration of product-creator

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

This module has an unstable interface.

Imports

  • Directory
  • FileUtils
  • Label
  • Message
  • Package
  • Popup
  • Progress
  • Report
  • Security
  • String

Global Functions

Local Variables

Local Functions

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 get_type_value (map config, string task) -> map

generate the value for image type

Parameters:
config
task
local get_image_packages (map config, list packages, list patterns, list ignored) -> map

generate the list of packages/patterns for image

Parameters:
config
packages
patterns
ignored
local non_unique_key -> map

which keys in config.xml are not unique

local Map2XML (map descr, integer level) -> string

convert YCP map (of internal type) to XML

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

import the data from given config.xml

Parameters:
base_path
global WriteConfigXML (map KiwiConfig, string kiwi_task) -> boolean

Write currect configuration to new config.xml

Parameters:
KiwiConfig
kiwi_task
global SaveConfiguration (map KiwiConfig, string kiwi_task) -> string

save the image configuration to the kiwi images directory

Parameters:
KiwiConfig
kiwi_task