pyanaconda.ui.lib package

Submodules

pyanaconda.ui.lib.disks module

class pyanaconda.ui.lib.disks.FakeDiskLabel(free=0)

Bases: object

class pyanaconda.ui.lib.disks.FakeDisk(name, size=0, free=0, partitioned=True, vendor=None, model=None, serial=None, removable=False)

Bases: object

description
pyanaconda.ui.lib.disks.getDisks(devicetree, fake=False)
pyanaconda.ui.lib.disks.isLocalDisk(disk)

pyanaconda.ui.lib.entropy module

Helper module with functions for informing user we are waiting for random data entropy.

pyanaconda.ui.lib.entropy.wait_for_entropy(msg, desired_entropy, ksdata)

Show UI dialog/message for waiting for desired random data entropy.

Parameters:
  • ksdata (pykickstart.base.BaseHandler) – kickstart data
  • desired_entropy (int) – entropy level to wait for
Returns:

whether to force continuing regardless of the available entropy level

Return type:

bool

pyanaconda.ui.lib.space module

class pyanaconda.ui.lib.space.DirInstallSpaceChecker(storage, payload)

Bases: pyanaconda.ui.lib.space.FileSystemSpaceChecker

Use the amount of space available at ROOT_PATH to calculate free space.

This is used for the –dirinstall option where no storage is mounted and it is using space from the host’s filesystem.

Create a new FileSystemSpaceChecker object.

Attributes:

payload – An instance of a packaging.Payload subclass. storage – An instance of storage.Storage.

check()

Check configured storage against software selections. When this method is complete (which should be pretty quickly), the following attributes are available for inspection:

success – A simple boolean defining whether there’s enough
space or not.
deficit – If unsuccessful, how much space the system is
short for current software selections.
error_message – If unsuccessful, an error message describing the
situation. This message is suitable for putting in the info bar at the bottom of a Hub.
class pyanaconda.ui.lib.space.FileSystemSpaceChecker(storage, payload)

Bases: object

This object provides for a way to verify that enough space is available on configured file systems to support the current software selections. It is run as part of completeness checking every time a spoke changes, therefore moving this step up out of both the storage and software spokes.

Create a new FileSystemSpaceChecker object.

Attributes:

payload – An instance of a packaging.Payload subclass. storage – An instance of storage.Storage.

check()

Check configured storage against software selections. When this method is complete (which should be pretty quickly), the following attributes are available for inspection:

success – A simple boolean defining whether there’s enough
space or not.
deficit – If unsuccessful, how much space the system is
short for current software selections.
error_message – If unsuccessful, an error message describing the
situation. This message is suitable for putting in the info bar at the bottom of a Hub.
error_template = 'Not enough space in file systems for the current software selection. An additional %s is needed.'
reset()

Get rid of any existing error messages and prepare to run the check again.

Module contents