Package pyanaconda :: Package storage :: Module devices :: Class LUKSDevice
[hide private]
[frames] | no frames]

Class LUKSDevice

source code

object --+                
         |                
    Device --+            
             |            
 StorageDevice --+        
                 |        
          DMDevice --+    
                     |    
         DMCryptDevice --+
                         |
                        LUKSDevice

A mapped LUKS device.

Instance Methods [hide private]
 
__init__(self, name, format=None, size=None, uuid=None, exists=None, sysfsPath='', parents=None)
Create a LUKSDevice instance.
source code
 
writeKS(self, f, preexisting=False, noformat=False, s=None) source code
 
size(self) source code
 
_postCreate(self)
Perform post-create operations.
source code
 
_postTeardown(self, recursive=False)
Perform post-teardown operations.
source code
 
dracutSetupArgs(self) source code

Inherited from DMDevice: __repr__, dict, fstabSpec, getDMNode, mapName, setupPartitions, slave, status, teardownPartitions, updateSysfsPath

Inherited from DMDevice (private): _setName

Inherited from StorageDevice: __str__, checkSize, create, currentSize, destroy, disks, encrypted, formatArgs, growable, isDisk, maxSize, minSize, model, notifyKernel, packages, partedDevice, partitionable, partitioned, path, preCommitFixup, removable, resizable, resize, serial, services, setup, setupParents, teardown, vendor

Inherited from Device: __deepcopy__, addChild, dependsOn, isleaf, mediaPresent, removeChild, teardownParents, type, typeDescription

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _type = "luks/dm-crypt"
  _packages = ["cryptsetup-luks"]

Inherited from DMDevice: name

Inherited from DMDevice (private): _devDir

Inherited from StorageDevice: format, sysfsBlockDir, targetSize

Inherited from StorageDevice (private): _isDisk, _partitionable, _resizable

Inherited from Device (private): _id, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, format=None, size=None, uuid=None, exists=None, sysfsPath='', parents=None)
(Constructor)

source code 
Create a LUKSDevice instance.

Arguments:

    name -- the device name

Keyword Arguments:

    size -- the device's size in MB
    uuid -- the device's UUID
    sysfsPath -- sysfs device path
    format -- a DeviceFormat instance
    parents -- a list of required Device instances
    exists -- indicates whether this is an existing device

Overrides: object.__init__

writeKS(self, f, preexisting=False, noformat=False, s=None)

source code 
Overrides: Device.writeKS

size(self)

source code 
Decorators:
  • @property
Overrides: size

_postCreate(self)

source code 

Perform post-create operations.

Overrides: StorageDevice._postCreate
(inherited documentation)

_postTeardown(self, recursive=False)

source code 

Perform post-teardown operations.

Overrides: StorageDevice._postTeardown
(inherited documentation)

dracutSetupArgs(self)

source code 
Overrides: Device.dracutSetupArgs