pyanaconda.modules.storage.devicetree.handler_interface
Classes
DBus interface for the device tree handler. |
Module Contents
- class pyanaconda.modules.storage.devicetree.handler_interface.DeviceTreeHandlerInterface[source]
Bases:
pyanaconda.modules.common.base.base_template.InterfaceTemplate
DBus interface for the device tree handler.
- MountDevice(device_id, mount_point, options)[source]
Mount a filesystem on the device.
- Parameters:
device_id (Str) – ID of the device
mount_point (Str) – a path to the mount point
options (Str) – a string with mount options or an empty string to use defaults
- Raise:
MountFilesystemError if mount fails
- UnmountDevice(device_id, mount_point)[source]
Unmount a filesystem on the device.
- Parameters:
device_id (Str) – ID of the device
mount_point (Str) – a path to the mount point
- Raise:
MountFilesystemError if unmount fails
- UnlockDevice(device_id, passphrase)[source]
Unlock a device.
- Parameters:
device_id (Str) – ID of the device
passphrase (Str) – a passphrase
- Returns:
True if success, otherwise False
- Return type:
Bool
- FindUnconfiguredLUKS()[source]
Find all unconfigured LUKS devices.
Returns a list of devices that require to set up a passphrase to complete their configuration.
- Returns:
a list of device IDs
- Return type:
List[Str]
- SetDevicePassphrase(device_id, passphrase)[source]
Set a passphrase of the unconfigured LUKS device.
- Parameters:
device_id (Str) – ID of the device
passphrase (Str) – a passphrase
- GetDeviceMountOptions(device_id)[source]
Get mount options of the specified device.
- Parameters:
device_id (Str) – ID of the device
- Returns:
a string with options
- Return type:
Str
- SetDeviceMountOptions(device_id, mount_options)[source]
Set mount options of the specified device.
Specifies a free form string of options to be used when mounting the filesystem. This string will be copied into the /etc/fstab file of the installed system.
- Parameters:
device_id (Str) – ID of the device
mount_options (Str) – a string with options
- FindDevicesWithTask()[source]
Find new devices.
The task will populate the device tree with new devices.
- Returns:
a path to the task
- Return type:
ObjPath
- FindOpticalMedia()[source]
Find all devices with mountable optical media.
- Returns:
a list of device IDs
- Return type:
List[Str]
- FindMountablePartitions()[source]
Find all mountable partitions.
- Returns:
a list of device IDs
- Return type:
List[Str]