diskimage-builder/diskimage_builder/block_device
Andreas Florath 3d48a528c1 Refactor: block-device handling (local loop)
Block device handling can be somewhat complex - especially
when taking things like md, lvm or encryption into account.

This patch factors out the creation and deletion of the local
loop image device handling into a python library.

The main propose of this patch is to implement the needed
infrastructure.  Based on this, more advanced functions can be added.
Example: (advanced) partitioning, LVM, handling different boot
scenarios (BIOS, UEFI, ...), possibility of handling multiple images
(local loop image, iSCSI, physical hard disk, ...), handling of
different filesystems for different partitions / LVs.

Change-Id: Ib626b36a00f8a5dc3dbde8df3e2619a2438eaaf1
Signed-off-by: Andreas Florath <andreas@florath.net>
2016-09-08 04:31:01 +00:00
..
level0 Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
tests Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
__init__.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
blockdevice.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
levelbase.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
utils.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00