pyanaconda.modules.payloads.payloads_interface

Classes

PayloadsInterface

DBus interface for Payload module.

Module Contents

class pyanaconda.modules.payloads.payloads_interface.PayloadsInterface[source]

Bases: pyanaconda.modules.common.base.KickstartModuleInterface

DBus interface for Payload module.

connect_signals()[source]

Connect the signals.

CreatePayload(payload_type)[source]

Create payload and publish it on DBus.

payload_type could contain these values:
  • DNF

  • LIVE_OS

  • LIVE_IMAGE

Parameters:

payload_type (Str)

Return type:

ObjPath

property CreatedPayloads: List[ObjPath][source]

List of all created payload modules.

Returns:

a list of DBus paths

Return type:

List[ObjPath]

ActivatePayload(payload)[source]

Activate the payload.

Parameters:

payload (ObjPath) – a path to a payload

property ActivePayload: Str[source]

The active payload.

Returns:

a DBus path or an empty string

Return type:

Str

CreateSource(source_type)[source]

Create payload source and publish it on DBus.

source_type could contain these values:
  • LIVE_OS_IMAGE

Parameters:

source_type (Str)

Return type:

ObjPath

IsNetworkRequired()[source]

Do the sources require a network?

Returns:

True or False

Return type:

Bool

CalculateRequiredSpace()[source]

Calculate space required for the installation.

Returns:

required size in bytes

Return type:

int

GetKernelVersionList()[source]

Get the kernel versions list.

The kernel version list doesn’t have to be available before the payload installation.

Returns:

a list of kernel versions

Raises:

UnavailableValueError – if the list is not available

Return type:

List[Str]

PostInstallWithTasks()[source]

Return a list of post-installation tasks.

Returns:

a list of object paths of installation tasks

Return type:

List[ObjPath]