YaST2 Developers Documentation: Configuration of product-creator

Configuration of product-creator

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

This module has an unstable interface.

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

Imports

  • AddOnCreator
  • Arch
  • AutoinstSoftware
  • CommandLine
  • Directory
  • FileUtils
  • GPG
  • GPGWidgets
  • Misc
  • Mode
  • Package
  • PackageAI
  • PackageCallbacks
  • Popup
  • Profile
  • Profile
  • Progress
  • Report
  • SourceManager
  • String
  • Summary
  • URL
  • XML

Global Variables

Global Functions

Local Functions

global AbortFunction -> block<boolean>

Abort function return boolean return true if abort

global SetPackageArch (string new_arch) -> boolean

Set the target package architecture

Parameters:
new_arch new architecture (i386, i486, i586, i686, sparc, sparc64, mips, mips64, ppc, ppc64, alpha, s390, s390x, ia64, x86_64)
Return value:
true on success
global modified -> boolean

Data was modified?

global Modified () -> boolean

Data was modified?

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

Abort function

Return value:
blah blah lahjk
global PollAbort () -> boolean

Check for pending Abort press

Return value:
true if pending abort
global ReallyAbort () -> boolean

If modified, ask for confirmation

Return value:
true if abort is confirmed
local ProgressNextStage (string title) -> void

Progress::NextStage and Progress::Title combined into one function

Parameters:
title progressbar title
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 WritePatternFile (string file_path, list<map> patterns) -> boolean

Write the modified file with pattern definitions

Parameters:
file_path path to pattern file
patterns list of patterns defined in this file
Return value:
success
global CreateSkeleton (integer base_source, boolean bootable_product, string boot_architecture) -> boolean

Create Skeleton

Parameters:
base_source
bootable_product
boot_architecture
Return value:
true on success
local InsertKeyToInitrd (string gpg_key, string initrd_file) -> boolean

see http://en.opensuse.org/Secure_Installation_Sources

Parameters:
gpg_key GPG key ID or empty if the product should be unsigned
initrd_file path to the initrd file
Return value:
true on success
global CopyMiscFiles (string boot_arch) -> boolean

CopyMiscFiles Copy other files to directory tree

Parameters:
boot_arch
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 CheckLanguage () -> void

Check if there is a language selected in the package manager, if not then select the language used in the UI. Htis prevents the solver from allocating too many resources (see bug #339756)

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