pyanaconda.modules.payloads.payloads_interface
Classes
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.
- 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: