blivet.populator package¶
Subpackages¶
- blivet.populator.helpers package
- Submodules
- blivet.populator.helpers.boot module
- blivet.populator.helpers.btrfs module
- blivet.populator.helpers.devicepopulator module
- blivet.populator.helpers.disk module
- blivet.populator.helpers.disklabel module
- blivet.populator.helpers.dm module
- blivet.populator.helpers.dmraid module
- blivet.populator.helpers.formatpopulator module
- blivet.populator.helpers.loop module
- blivet.populator.helpers.luks module
- blivet.populator.helpers.lvm module
- blivet.populator.helpers.mdraid module
- blivet.populator.helpers.multipath module
- blivet.populator.helpers.optical module
- blivet.populator.helpers.partition module
- blivet.populator.helpers.populatorhelper module
- Module contents
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 unconditionallyIf 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.
- conf (
-
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.