blivet.populator package

Subpackages

Submodules

blivet.populator.populator module

class blivet.populator.populator.PopulatorMixin(disk_images=None)

Bases: object

Parameters:

disk_images – dictionary of disk images

drop_device_info_cache()

Drop cached device 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, force=False)
handle_nodev_filesystems()
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.

reset(disk_images=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