pyanaconda.modules.storage.storage_interface
Classes
DBus interface for Storage module. |
Module Contents
- class pyanaconda.modules.storage.storage_interface.StorageInterface[source]
Bases:
pyanaconda.modules.common.base.KickstartModuleInterface
DBus interface for Storage module.
- ScanDevicesWithTask()[source]
Scan all devices with a task.
Create a model of the current storage. This model will be used to schedule partitioning actions and validate the planned partitioning layout. See the CreatePartitioning method.
- Returns:
a path to a task
- Return type:
ObjPath
- CreatePartitioning(method)[source]
Create a new partitioning.
Create a new partitioning module with its own copy of the current storage model. The partitioning module provides an isolated playground for scheduling partitioning actions and validating the planned partitioning layout. Once the layout is valid, call ApplyPartitioning to choose it for the installation.
- Allowed values:
AUTOMATIC CUSTOM MANUAL INTERACTIVE BLIVET
- Parameters:
method (Str) – a partitioning method
- Returns:
a path to a partitioning
- Return type:
ObjPath
- property CreatedPartitioning: List[ObjPath][source]
List of all created partitioning modules.
- Returns:
a list of DBus paths
- Return type:
List[ObjPath]
- ApplyPartitioning(partitioning)[source]
Apply the partitioning.
Choose a valid partitioning layout of the specified partitioning module for an installation. Call InstallWithTasks to execute the scheduled actions and commit these changes to selected disks.
The device tree module provides information about the partitioned storage model instead of the model of the current storage if there is an applied partitioning.
- Parameters:
partitioning (ObjPath) – a path to a partitioning
- Raise:
InvalidStorageError if the partitioning is not valid
- property AppliedPartitioning: Str[source]
The applied partitioning.
An empty string is not a valid object path, so the return type has to be a string in this case.
- Returns:
a DBus path or an empty string
- Return type:
Str