Package pyanaconda :: Package storage :: Module devicetree
[hide private]
[frames] | no frames]

Module devicetree

source code

Classes [hide private]
  DeviceTree
A quasi-tree that represents the devices in the system.
Functions [hide private]
 
getLUKSPassphrase(intf, device, passphrases)
Obtain a passphrase for a LUKS encrypted block device.
source code
Variables [hide private]
  _ = lambda x:
  log = logging.getLogger("storage")
Function Details [hide private]

getLUKSPassphrase(intf, device, passphrases)

source code 

Obtain a passphrase for a LUKS encrypted block device.

The format's mapping name must already be set and the backing device must already be set up before calling this function.

If successful, this function leaves the device mapped.

Return value is the passphrase string, if obtained

Either or both can be None, depending on the outcome.