YaST2 Developers Documentation: Configuration of product-creator

Configuration of product-creator

modules/ProductCreator.ycp
Data for configuration of product-creator, input and output functions.

This module has an unstable interface.

Representation of the configuration of product-creator. Input and output routines.

Imports

  • Arch
  • AutoinstSoftware
  • CommandLine
  • Directory
  • GPG
  • GPGWidgets
  • Misc
  • Mode
  • PackageAI
  • Profile
  • Profile
  • Progress
  • Report
  • String
  • Summary
  • URL
  • XML

Includes

  • product-creator/routines.ycp

Global Variables

Global Functions

global AbortFunction -> block<boolean>

Abort function return boolean return true if abort

global modified -> boolean

Data was modified?

global Modified () -> boolean

Data was modified?

Return value:
true if modified
global Read () -> boolean

Read all product-creator settings

Return value:
true on success
global PrepareConfigs () -> list

Prepare map for writing into XML

Return value:
lists of configurations
global Write () -> boolean

Write all product-creator settings

Return value:
true on success
global Import (map settings) -> boolean

Get all product-creator settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success
global Export () -> map

Dump the product-creator settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())
global Summary () -> list

Create a textual summary and a list of unconfigured cards

Return value:
summary of the current configuration
global Overview () -> list

Create an overview table with all configured cards

Return value:
table items
global getSourceURLs (list<integer> ids) -> list

Get media urls

Parameters:
ids
Return value:
list of urls
global getSourceDir (string url) -> string

get path to directory source

Parameters:
url
Return value:
path
global Readisolinux () -> string

Return contents of isolinux.cfg from the given source

Return value:
with contents of file.
global configSetup () -> void

Create XML Configuration

global checkProductDependency () -> integer

Check Product dependencies and determine product to be used for booting. Also determine what is the main product.

global CreateSkeleton () -> boolean

Create Skeleton

Return value:
true on success
global CopyMiscFiles () -> boolean

CopyMiscFiles Copy other files to directory tree

Return value:
true on success
global EnableSource () -> boolean

Enable source and get source meta data

Return value:
true on success
global GetDirSources (string source) -> list<term>

Get all possible sources

Parameters:
source
Return value:
available enabled sources list for widget
global setPackages () -> boolean

Set packages to be copied to iso image tree

global checkPackageAvail () -> string

Check if selected packages are available

Return value:
error message
global CopyPackages () -> boolean

CopyPackages() Copy selected package to target tree

global ProductCreator () -> void

Constructor