KIWIXML Info


Public methods

Private methods


__addDefaultSplitNode

if no split section is setup we add a default section from the contents of the KIWISplit.txt file and apply it to the split types

Defined on line: 6036

Called in

__clearInstallData

Clear the given install data object in the proper location in the data structure.

Defined on line: 5260

Called in

__collectBootStrapPackagesData

Collect and coalesce data for the

Defined on line: 2587

Called in

__collectDefaultData

Collect data for the default profile for the given storage location in the data strcuture

Defined on line: 2598

Called in

__collectDeletePackagesData

Collect and coalesce data for the

Defined on line: 2647

Called in

__collectDriverData

Collect and coalesce data for the list

Defined on line: 2658

Called in

__collectPackagesData

Collect and coalesce data for the list

Defined on line: 2669

Called in

__collectStripData

Collect strip data for the given access pattern

Defined on line: 2715

Called in

__collectXMLListData

Collect and coalesce data that is part of a list in XML Items to be collected must have a getName method.

Defined on line: 2735

Called in

__convertSizeStrToMBVal

Convert a given size string that contains M or G into a value that is a representation in MB.

Defined on line: 2825

Called in

__createEC2Config

Return a ref to a hash that contains the EC2 configuration data for the given XML:ELEMENT object. Build a data structure that matches the structure defined in KIWIXMLEC2ConfigData

Defined on line: 2851

Called in

__createOEMConfig

Return a ref to a hash containing the configuration for of the given XML:ELEMENT object. Build a data structure that matches the structure defined in KIWIXMLOEMConfigData

Defined on line: 2891

Called in

__createPXEDeployConfig

Return a KIWIXMLPXEDeployData object created from the information in the element of the given XML:ELEMENT object.

Defined on line: 3078

Called in

__createPXEDeployConfigData

Return an array ref to an array containing KIWIXMLPXEDeployConfigData objects. Created from the information in the element of the given XML:ELEMENT object.

Defined on line: 3134

Called in

__createPackageCollectionDataXML

Add data from a collection to the given string

Defined on line: 2960

Called in

__createProductOptions

Return a KIWIXMLProductOptionsData object created from the data in the given node.

Defined on line: 3032

Called in

__createSplitData

Return a ref to a hash containing the configuration for of the given XML:ELEMENT object. Build a data structure that matches the structure defined in KIWIXMLSplitData

Defined on line: 3176

Called in

__createSystemDiskData

Return a ref to a hash containing the configuration for of the given XML:ELEMENT object. Build a data structure that matches the structure defined in KIWIXMLSystemdiskData

Defined on line: 3254

Called in

__createVMachineConfig

Return a ref to a hash that contains the configuration data for the element and it's children for the given XML:ELEMENT object

Defined on line: 3311

Called in

__dumpInternalXMLDescription

return the contents of the imageConfig data structure in a readable format

Defined on line: 3398

__genDUDInstSysPkgsArray

Return a ref to an array containing ProductPackageData objects created from the children of the data of the XML from the given node.

Defined on line: 3415

Called in

__genDUDModulePkgsArray

Return a ref to an array containing ProductPackageData objects created from the children of the data of the XML from the given node.

Defined on line: 3438

Called in

__genDUDPkgsArray

Return a ref to an array containing ProductPackageData objects created from the children of the data of the XML from the given node.

Defined on line: 3461

Called in

__genInstRepoArray

Return a ref to an array containing InstRepositoryData objects created from the data of the XML from the given node.

Defined on line: 3484

Called in

__genMetadataChrootArray

Return a ref to an array containing ProductMetaChrootData objects created from the data of the XML from the given node.

Defined on line: 3520

Called in

__genMetadataFileArray{

Return a ref to an array containing ProductMetaFileData objects created from the data of the XML from the given node.

Defined on line: 3551

__genMetadataPkgsArray

Return a ref to an array containing ProductPackageData objects created from the data of the XML from the given node.

Defined on line: 3583

Called in

__genProductArchitectureArray

Return a ref to an array containing ProductArchitectureData objects created from the data of the XML from the given node.

Defined on line: 3621

Called in

__genProductPackagesArray

Return a ref to an array containing ProductPackageData objects created from the data of the XML from the given node.

Defined on line: 3656

Called in

__genProductReqArchHash

Get the architecture list used for building up an installation source tree

Defined on line: 3677

Called in

__genRepoPackagesArray

Return a ref to an array containing ProductPackageData objects created from the children of the given node.

Defined on line: 3722

Called in

__genTypeHash

Return a ref to a hash keyed by the image type values for all definitions that are children of the given XML:ELEMENT object Build a data structure that matches the structure defined in KIWIXMLTypeData

Defined on line: 3758

Called in

__getChildNodeTextValue

Return the value of the node identified by the given name as text.

Defined on line: 3910

Called in

__getEntryPath

Return the position in the imageConfig structure where install data objects shold be stored. Install data objects are children of the or elements

Defined on line: 3928

Called in

__getInstallData

Return a ref to an array containing objects accumulated across the image config data structure for the given accessID.

Defined on line: 3989

Called in

__getPackagesToIgnore

Return an array ref containing IgnorePackageData objects The method is private as it is needed for filtering only. Clients of the XML object should not do any filtering on the data received.

Defined on line: 4057

Called in

__getPreferencesXMLElement

Return a complete preferences element for the given profile name

Defined on line: 4070

Called in

__getProfsToModify

Given an array ref, the keyword "default", or no argument generate an array of profile names

Defined on line: 4144

Called in

__getSchemaVersion

Return the schema version extracted from KIWISchema.rnc

Defined on line: 4188

Called in

__getTypeNamesForProfs

Retun an array ref containing names of the configured types for the given profile names.

Defined on line: 4213

Called in

__getVMConfigOpts

Extract the information from the XML and return all options in a list

Defined on line: 6109

__hasDefaultProfName

Check whether the default profile name "kiwi_default" is in the provided array ref of strings

Defined on line: 6128

Called in

__mergePreferenceData

Merge two hashes that represent data into one. Expecting two hash refs as arguments and return a hashref to the merged data. If both hashes have definitions for the same data issues an error.

Defined on line: 4253

Called in

__mergeUsers

Merge the given UserData objects. The data from the second user passed is subsumed by the first user object.

Defined on line: 4340

Called in

__populateArchiveInfo

Populate the imageConfig member with the information from elements from

Defined on line: 4366

Called in

__populateDescriptionInfo

Populate the imageConfig member with the description data from the XML file.

Defined on line: 4418

Called in

__populateDriverInfo

Populate the imageConfig member with the drivers data from the XML file.

Defined on line: 4552

Called in

__populateIgnorePackageInfo

Populate the imageConfig member with the information from

Defined on line: 4598

Called in

__populateInstSource

Populate the imageConfig member with the product data provided with the element and its children from the XML file.

Defined on line: 4453

Called in

__populatePackageCollectionInfo

Populate the imageConfig member with the information from

Defined on line: 4726

Called in

__populatePackageInfo

Populate the imageConfig member with the information from

Defined on line: 4642

Called in

__populatePackageProductInfo

Populate the imageConfig member with the information from

Defined on line: 4779

Called in

__populatePreferenceInfo

Populate the imageConfig member with the preferences data from the XML file.

Defined on line: 4825

Called in

__populateProfileInfo

Populate the imageConfig member with the profile data from the XML file.

Defined on line: 4941

Called in

__populateRepositoryInfo

Populate the imageConfig member with the repository data from the XML file.

Defined on line: 5006

Called in

__populateStripInfo

Populate the imageConfig member with the strip data from the XML file.

Defined on line: 5063

Called in

__populateUserInfo

Populate the imageConfig member with the user data from the XML file.

Defined on line: 5120

Called in

__resolveArchitecture

Missing

Defined on line: 6163

Called in

__resolveLink

Missing

Defined on line: 6147

Called in

__setDefaultBuildType

Set the default built type, which upon object construction is also the the selected built type. The default built type is the first specification processed or the one type marked with primary="true" across all the selected profiles. Unless a type is marked primary, the default type of the default profile always wins. The default type is a ref to a hash that is set as the default type as differentiation by name is not sufficient, as multiple profiles my have the same image type definition, which is valid as long as those profiles are not processed together.

Defined on line: 5183

Called in

__storeInstallData

Store the given install data object in the proper location in the data structure. Install data objects are objects of children of the or elements. If the object was stored, return the object If the object was already present return 1

Defined on line: 5295

Called in

__verifyAddInstallDataArgs

Verify the arguments given to any of the add* methods that handle image installation data.

Defined on line: 5363

Called in

__verifyProfNames

Verify that the profile names in the given array ref are available, if not print the given msg substituting PROF_NAME in the message with the name that is in violation.

Defined on line: 5448

Called in

addArchives

Add the given archives to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array - the given image type of the profiles being processed

Defined on line: 455

addBootstrapArchives

Add the given archives to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array - the given image type of the profiles being processed

Defined on line: 513

Called in

addBootstrapPackages

Add the given packages to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 564

Called in

addDrivers

Add the given drivers to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 613

Called in

addFilesToDelete

Add the given StripData objects to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 676

Called in

addLibsToKeep

Add the given StripData objects to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 728

Called in

addPackageCollections

Add the given package collections to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array - the given image type of the profiles being processed

Defined on line: 848

Called in

addPackages

Add the given packages to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array - the given image type of the profiles being processed

Defined on line: 780

Called in

addPackagesToDelete

Add the given packages to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 906

Called in

addRepositories

Add the given repositories to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 955

Called in

addSystemDisk

Add a KIWIXMLSystemdiskData object to the type that is currently the build type.

Defined on line: 1067

Called in

addToolsToKeep

Add the given StripData objects to - the currently active profiles (not default) ~ if the second argument is undefined - the default profile ~ if second argument is the keyword "default" - the specified profiles ~ if the second argument is a reference to an array

Defined on line: 1102

Called in

discardReplacableRepos

Remove all repositories marked as replaceable

Defined on line: 1154

Called in

getActiveProfileNames

Return an array ref containing the names of the active profiles; this does not reveal the default (kiwi_default) name, as this is always active

Defined on line: 1182

Called in

getArch

Return the architecture currently used for data selection

Defined on line: 5594

getArchives

Return an array ref containing ArchiveData objects

Defined on line: 1203

Called in

getBootDeletePackages

Return an array ref containing PackageData objects for the packages that should be deleted.

Defined on line: 1219

Called in

getBootIncludeArchives

Return an array ref containing ArchiveData objects

Defined on line: 1231

Called in

getBootIncludePackageCollections

Return an array ref containing PackageCollectData objects

Defined on line: 1276

Called in

getBootIncludePackages

Return an array ref containing PackageData objects

Defined on line: 1242

Called in

getBootKernel

Missing

Defined on line: 1369

getBootProfile

Missing

Defined on line: 1360

getBootstrapPackages

Return an array ref containing PackageData objects for the packages that should be used to bootstrap the image.

Defined on line: 1287

Called in

getConfigName

Missing

Defined on line: 5480

Called in

getConfiguredTypeNames

Return an array ref of image type names avaliable across the selected profiles.

Defined on line: 1311

Called in

getDUDArchitectures

Return a hash ref containing strings indicating the driver update disk architectures.

Defined on line: 1378

Called in

getDUDInstallSystemPackages

Return an array ref containing ProductPackageData objects

Defined on line: 1393

Called in

getDUDModulePackages

Return an array ref containing ProductPackageData objects

Defined on line: 1407

Called in

getDUDPackages

Return an array ref containing ProductPackageData objects

Defined on line: 1421

getDescriptionInfo

Return an object that encapsulates the description information

Defined on line: 1337

Called in

getDrivers

Return an array ref containing DriverData objects for the current selected build profile(s)

Defined on line: 1348

Called in

getEC2Config

Return an EC2ConfigData object for the EC2 configuration of the current build type.

Defined on line: 1435

Called in

getFilesToDelete

Return an array ref containing StripData objects for the current selected build profile(s)

Defined on line: 1447

getImageDisplayName

Get the display name of the logical extend

Defined on line: 1459

Called in

getImageID

Missing

Defined on line: 5489

Called in

getImageName

Return the configured image name

Defined on line: 1483

Called in

getImageType

Return a TypeData object for the selected build type

Defined on line: 1494

Called in

getInstSourceSatSolvable

Missing

Defined on line: 5605

Called in

getInstallOption

Return the install option type setting. Returns undef if there is a conflict and thus the settings are ambiguous.

Defined on line: 1505

Called in

getLibsToKeep

Return an array ref containing StripData objects for the current selected build profile(s)

Defined on line: 1535

getOEMConfig

Return a OEMConfigData object for the selected build type

Defined on line: 1547

Called in

getPXEConfig

Return a PXEDeployData object for the PXE boot configuration of the current build type.

Defined on line: 1854

Called in

getPXEConfigData

Return an array ref containing PXEDeployConfigData objects for current build type.

Defined on line: 1866

Called in

getPackageCollections

Return an array ref containing PackageCollectData objects

Defined on line: 1624

getPackages

Return an array ref containing PackageData objects

Defined on line: 1578

getPackagesToDelete

Return an array ref containing PackageData objects for the packages that should be deleted.

Defined on line: 1638

Called in

getPreferences

Return a new KIWIXMLPreferenceData object which references the sum of all default and currently selected build profile(s)

Defined on line: 1679

Called in

getProductArchitectures

Return an array ref of ProductArchitectureData objects.

Defined on line: 1707

getProductMetaChroots

Return an array ref of ProductMetaChrootData objects specified as metadata.

Defined on line: 1721

Called in

getProductMetaFiles

Return an array ref of ProductMetaFileData objects specified as metadata.

Defined on line: 1736

Called in

getProductMetaPackages

Return an array ref of ProductPackageData objects specified as metadata.

Defined on line: 1751

Called in

getProductOptions

Return a ProductOptionsData object providing all information from , , and elements.

Defined on line: 1766

Called in

getProductRepositories

Return an array ref of InstRepositoryData objects

Defined on line: 1781

Called in

getProductRequiredArchitectures

Return a hash ref of strings indicating the required architectures

Defined on line: 1795

Called in

getProductSourcePackages

Return an array ref of ProductPackageData objects

Defined on line: 1820

Called in

getProducts

Return an array ref containing ProductData objects

Defined on line: 1809

Called in

getProfiles

Return an array ref of ProfileData objects available for this image

Defined on line: 1834

Called in

getRepositories

Return an array reference of KIWIXMLRepositories objects that are specified to be part of the current profile(s)

Defined on line: 1878

getSingleInstSourceSatSolvable

Missing

Defined on line: 5635

Called in

getSplitConfig

Return a SplitData object for the configuration of the current build type

Defined on line: 1898

Called in

getSystemDiskConfig

Return a SystemdiskData object for the configuration of the current build type

Defined on line: 1910

Called in

getTestSuitePackages

Return an array ref containing PackageData objects for the packages that should be used in a testsuite run.

Defined on line: 1299

Called in

getToolsToKeep

Return an array ref containing StripData objects for the current selected build profile(s)

Defined on line: 1922

getType

Return a TypeDataObject for the given type if found in the active profiles.

Defined on line: 1934

getUsers

Return a reference to an array holding UserData objects

Defined on line: 1966

Called in

getVMachineConfig

Return a VMachineData object for the virtual machine configuration of the current build type

Defined on line: 2001

Called in

ignoreRepositories

Ignore all the repositories in the XML file.

Defined on line: 2033

Called in

isArchAllowed

Missing

Defined on line: 5554

isDriverUpdateDisk

Missing

Defined on line: 5584

Called in

new

KIWI XML processor and data store The XML object processes the configuration file and stores that data in the imageConfig hash. The hash is layed out as a data structure that resembles the XML file and allows easy access to the data for the use by other objects. Other objects never get access to the internal structure and can only manipulate data via set methods or retrieve data via get methods. Wherever access to complex information is required the XML object will provide a specific object for this data. The provided object in turn has get and set methods to access the data. internal data structure this = { availableProfiles = ('',....) defaultType = { ec2config = KIWIXMLEC2ConfigData machine = KIWIXMLVMachineData oemconfig = KIWIXMLOEMConfigData pxeconfig = (KIWIXMLPXEDeployConfigData,...) pxedeploy = KIWIXMLPXEDeployData split = KIWIXMLSplitData systemdisk = KIWIXMLSystemdiskData type = KIWIXMLTypeData }, selectedProfiles = ('',....,'kiwi_default') selectedType = { ec2config = KIWIXMLEC2ConfigData machine = KIWIXMLVMachineData oemconfig = KIWIXMLOEMConfigData pxeconfig = (KIWIXMLPXEDeployConfigData,...) pxedeploy = KIWIXMLPXEDeployData split = KIWIXMLSplitData systemdisk = KIWIXMLSystemdiskData type = KIWIXMLTypeData }, imageConfig = { description = KIWIXMLDescriptionData displayName = '' imageName = '' productSettings = { dudArches = ('',...) reqArches = ('',...) options = KIWIXMLProductOptionsData architectures = (KIWIXMLProductArchitectureData,... ) dudInstSysPkgs = (KIWIXMLProductPackageData,... ) dudModulePkgs = (KIWIXMLProductPackageData,... ) dudPkgs = (KIWIXMLProductPackageData,... ) instRepos = (KIWIXMLInstRepositoryData,... ) metaChroots = (KIWIXMLProductMetaChrootData,...) metaFiles = (KIWIXMLProductMetaFileData,...) metaPkgs = (KIWIXMLProductPackageData,... ) prodPkgs = (KIWIXMLProductPackageData,...) } [+] = { installOpt = '' archives = (KIWIXMLPackageArchiveData,...) bootArchives = (KIWIXMLPackageArchiveData,...) profInfo = KIWIXMLProfileData repoData = (KIWIXMLRepositoryData,...) bootDelPkgs = (KIWIXMLPackageData, ...) bootPkgs = (KIWIXMLPackageData, ...) bootPkgsCollect = (KIWIXMLPackageCollectData,...) bootStrapPckgs = (KIWIXMLPackageData, ...) TestSuitePckgs = (KIWIXMLPackageData, ...) delPkgs = (KIWIXMLPackageData, ...) drivers = (KIWIXMLDriverData, ...) ignorePkgs = (KIWIXMLPackageData, ...) keepLibs = (KIWIXMLStripData,...) keepTools = (KIWIXMLStripData,...) pkgs = (KIWIXMLPackageData, ...) pkgsCollect = (KIWIXMLPackageCollectData,...) products = (KIWIXMLPackageProductData,...) stripDelete = (KIWIXMLStripData,...) [+] { archives = (KIWIXMLPackageArchiveData,...) bootArchives = (KIWIXMLPackageArchiveData,...) bootDelPkgs = (KIWIXMLPackageData, ...) bootPkgs = (KIWIXMLPackageData, ...) bootPkgsCollect = (KIWIXMLPackageCollectData,...) bootStrapPckgs = (KIWIXMLPackageData, ...) TestSuitePckgs = (KIWIXMLPackageData, ...) delPkgs = (KIWIXMLPackageData, ...) drivers = (KIWIXMLDriverData, ...) ignorePkgs = (KIWIXMLPackageData, ...) keepLibs = (KIWIXMLStripData,...) keepTools = (KIWIXMLStripData,...) pkgs = (KIWIXMLPackageData, ...) pkgsCollect = (KIWIXMLPackageCollectData,...) products = (KIWIXMLPackageProductData,...) stripDelete = (KIWIXMLStripData,...) } preferences = { bootloader_theme = '' bootsplash_theme = '' defaultdestination = '' defaultprebuilt = '' defaultroot = '' hwclock = '' keymap = '' locale = '' packagemanager = '' rpm_check_signatures = '' rpm_excludedocs = '' rpm_force = '' showlicense = '' timezone = '' types = '' version types { defaultType = '' [+] { ec2config = KIWIXMLEC2ConfigData machine = KIWIXMLVMachineData oemconfig = KIWIXMLOEMConfigData pxeconfig = (KIWIXMLPXEDeployConfigData,...) pxedeploy = KIWIXMLPXEDeployData split = KIWIXMLSplitData systemdisk = KIWIXMLSystemdiskData type = KIWIXMLTypeData } } } [+] { archives = (KIWIXMLPackageArchiveData,....) [+] { archives = (KIWIXMLPackageArchiveData,...) bootArchives = (KIWIXMLPackageArchiveData,...) bootDelPkgs = (KIWIXMLPackageData,...) bootPkgs = (KIWIXMLPackageData,...) bootPkgsCollect = (KIWIXMLPackageCollectData,...) drivers = (KIWIXMLDriverData) ignorePkgs = (KIWIXMLPackageData,...) pkgs = (KIWIXMLPackageData,...) pkgsCollect = (KIWIXMLPackageCollectData) products = (KIWIXMLPackageProductData,...) } bootArchives = (KIWIXMLPackageArchiveData,...) bootDelPkgs = (KIWIXMLPackageData,...) bootPkgs = (KIWIXMLPackageData,...) bootPkgsCollect = (KIWIXMLPackageCollectData,...) drivers = (KIWIXMLPackageCollectData,...) ignorePkgs = (KIWIXMLPackageData,...) pkgs = (KIWIXMLPackageData,...) pkgsCollect = (KIWIXMLPackageCollectData,...) products = (KIWIXMLPackageCollectData,...) } users = (KIWIXMLUserData,...) } } }

Defined on line: 78

Called in

setArch

Set the architecture to use to retrieve information

Defined on line: 5534

setBootProfiles

Missing

Defined on line: 5502

Called in

setBuildType

Set the type to be used as the build type

Defined on line: 2057

Called in

setDescriptionInfo

Set the description information for this configuration

Defined on line: 2098

setImageDisplayName

Set the display name used for the boot menu

Defined on line: 1470

Called in

setOEMConfig

Store a new OEMConfigData object for the selected build type

Defined on line: 1558

Called in

setPackagesToDelete

set new list of PackageData objects for the packages that should be deleted.

Defined on line: 1650

Called in

setPreferences

Set the preferences for the currently selected profiles. We divide each setting to the profile where it is already defined. If a setting is not defined we set the value on the default profile. If I build profiles A, B, and C and am given preferences to set this method will set, for example the bootloader_theme in the profile where the bootloader_theme is defined, A, B, or C or in the default profile if not defined in any of the other profiles.

Defined on line: 2120

Called in

setRepository

Overwrite the first repository marked as replaceable for the currently active profiles, the search starts with the default profile

Defined on line: 2181

Called in

setSelectionProfileNames

Set the information about which profiles to use for data access, if no argument is given set to the default profile(s)

Defined on line: 2241

Called in

setVMachineConfig

Store a new VMachineData object

Defined on line: 2013

Called in

updateType

Modify the type that is currently the build type

Defined on line: 2283

Called in

writeXML

Write the configuration to the given path Writes the XML in formated format

Defined on line: 2311

Called in