blivet.populator package

Submodules

blivet.populator.populator module

class blivet.populator.populator.PopulatorMixin(conf=None, passphrase=None, luks_dict=None)

Bases: object

Parameters:
  • conf (StorageDiscoveryConfig) – storage discovery configuration
  • passphrase – default LUKS passphrase
  • luks_dict (dict) – a dict with UUID keys and passphrase values
drop_lvm_cache()

Drop cached lvm information.

handle_device(info, update_orig_fmt=False)

:param pyudev.Device info: udev info for the device :keyword bool update_orig_fmt: update original format unconditionally

If a device is added to the tree based on info its original format will be saved after the format has been detected. If the device that corresponds to info is already in the tree, its original format will not be updated unless update_orig_fmt is True.

handle_format(info, device)
handle_nodev_filesystems()
lv_info

Return an attribute of instance, which is of type owner.

populate(cleanup_only=False)

Locate all storage devices.

Everything should already be active. We just go through and gather details as needed and set up the relations between various devices.

Devices excluded via disk filtering (or because of disk images) are scanned just the rest, but then they are hidden at the end of this process.

pv_info

Return an attribute of instance, which is of type owner.

reset(conf=None, passphrase=None, luks_dict=None)
save_luks_passphrase(device)

Save a device’s LUKS passphrase in case of reset.

set_disk_images(images)

Set the disk images and reflect them in exclusive_disks.

Parameters:images (dict) – dict with image name keys and filename values

Note

Disk images are automatically exclusive. That means that, in the presence of disk images, any local storage not associated with the disk images is ignored.

setup_disk_images()

Set up devices to represent the disk image files.

teardown_disk_images()

Tear down any disk image stacks.

blivet.populator.populator.parted_exn_handler(exn_type, exn_options, exn_msg)

Answer any of parted’s yes/no questions in the affirmative.

This allows us to proceed with partially corrupt gpt disklabels.

Module contents