pyanaconda.modules.common.base.base_interface

Classes

KickstartModuleInterface

DBus interface of a kickstart module.

Module Contents

class pyanaconda.modules.common.base.base_interface.KickstartModuleInterface[source]

Bases: pyanaconda.modules.common.base.base_template.KickstartModuleInterfaceTemplate

DBus interface of a kickstart module.

The implementation is provided by the KickstartModule class.

connect_signals()[source]

Connect the signals.

property KickstartCommands: List[Str][source]

Return names of kickstart commands handled by module.

Returns:

List of names of kickstart commands handled by module.

Return type:

List[Str]

property KickstartSections: List[Str][source]

Return names of kickstart sections handled by module.

Returns:

List of names of kickstart sections handled by module.

Return type:

List[Str]

property KickstartAddons: List[Str][source]

Return names of kickstart addons handled by module.

Returns:

List of names of kickstart addons handled by module.

Return type:

List[Str]

property Kickstarted: Bool[source]

Was this module set up by the kickstart?

Returns:

True if module was set up by the kickstart, otherwise False

Return type:

Bool

ReadKickstart(kickstart)[source]

Read the kickstart string.

Parameters:

kickstart (Str) – a kickstart string

Returns:

a structure with a kickstart report

Return type:

Structure

GenerateKickstart()[source]

Return a kickstart representation of the module

Returns:

a kickstart string

Return type:

Str

CollectRequirements()[source]

Return installation requirements of this module.

Returns:

a list of requirements

Return type:

List[Structure]

SetLocale(locale)[source]

Set the locale for the module.

This function modifies the process environment, which is not thread-safe. It should be called before any threads are run.

We cannot get around setting $LANG. Python’s gettext implementation differs from C in that consults only the environment for the current language and not the data set via setlocale. If we want translations from python modules to work, something needs to be set in the environment when the language changes.

Examples: “cs_CZ.UTF-8”, “fr_FR”

Parameters:

locale (Str)

ConfigureWithTasks()[source]

Configure the runtime environment.

Note: Addons should use it instead of the setup method.

Returns:

a list of object paths of installation tasks

Return type:

List[ObjPath]

ConfigureBootloaderWithTasks(kernel_versions)[source]

Configure the bootloader after the payload installation.

FIXME: This is a temporary workaround. The method might change.

Parameters:

kernel_versions (List[Str]) – a list of kernel versions

Returns:

list of object paths of installation tasks

Return type:

List[ObjPath]

InstallWithTasks()[source]

Returns installation tasks of this module.

Note: Addons should use it instead of the execute method.

Returns:

list of object paths of installation tasks

Return type:

List[ObjPath]

TeardownWithTasks()[source]

Returns teardown tasks for this module.

Returns:

list of object paths of installation tasks

Return type:

List[ObjPath]

Quit()[source]

Shut the module down.