diskimage-builder/elements
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
..
apt-conf Update apt-conf elements README from free text to table formatting 2015-10-08 17:12:46 -07:00
apt-preferences Update apt-preferences element README from free text to table formatting 2015-10-08 17:14:16 -07:00
apt-sources Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
architecture-emulation-binaries Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
baremetal Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
base Disabled IPv6 privacy extensions 2016-09-01 14:41:26 +10:00
bootloader Update GRUB_MKCONFIG for detecting what's installed 2016-08-22 07:12:15 -05:00
cache-url Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
centos Export YUM variable in centos bases 2016-07-01 12:14:38 +02:00
centos7 Remove the escape in the centos7 README file 2016-07-19 11:32:49 +08:00
centos-minimal Merge "Revert "Revert "Pre-install pip/virtualenv packages""" 2016-09-06 21:21:11 +00:00
cleanup-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
cloud-init Add new cloud-init element 2016-02-01 21:03:03 -06:00
cloud-init-datasources Simple-init should disable cloud-init 2015-05-11 16:55:02 +00:00
cloud-init-disable-resizefs Fix cloud-init-disable-resizefs README title 2016-03-01 21:49:10 -08:00
cloud-init-nocloud Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian Explain difference between two envvars 2016-08-25 10:07:29 +08:00
debian-minimal Explain difference between two envvars 2016-08-25 10:07:29 +08:00
debian-systemd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debian-upstart Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
debootstrap Merge "add no_proxy when debootstrap trying to use proxy" 2016-09-01 05:14:47 +00:00
deploy Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-baremetal Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-ironic deploy-ironic: Fix syntax error when checking for root device hints 2016-01-07 12:06:19 +00:00
deploy-kexec Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
deploy-targetcli Optimize Python install in deploy-targetcli 2015-06-22 13:19:14 -05:00
deploy-tgtadm No markdown docs for elements 2015-04-02 23:55:19 +00:00
devuser Fix devuser pubkey defaults 2015-10-13 17:54:09 -07:00
dhcp-all-interfaces fix systemd resource deadlock 2016-09-06 04:47:29 +00:00
dib-init-system Depend on ifupdown in simple-init 2016-02-20 08:19:21 -06:00
dib-python Fix spurious = in dib-python readme 2016-03-07 04:47:35 +00:00
dib-run-parts/root.d dib-run-parts: make cp to target root more robust 2016-04-05 16:29:57 +02:00
disable-selinux/post-install.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dkms Make dkms element depend on dkms package 2015-12-26 22:07:19 +00:00
docker Add base element for using docker as image base 2015-07-19 10:23:34 +00:00
dpkg Merge "Add a best-effort sudo safety check" 2016-05-26 17:31:00 +00:00
dracut-network Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
dracut-ramdisk Make troubleshoot work with dracut ramdisks 2015-04-08 12:54:32 -05:00
dynamic-login Follow up patch for 25d3ee5471 2015-12-01 14:11:40 +00:00
element-manifest Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
enable-serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
epel Fix up EPEL element 2016-04-15 12:37:22 +10:00
fedora Make Fedora 24 the default 2016-07-08 09:15:08 -07:00
fedora-minimal Add tests for building *-minimal images 2016-08-22 16:53:32 +00:00
gentoo Update portage only if needed 2016-08-22 07:14:25 -05:00
growroot Merge "Refactor growroot for debuggabilty" 2016-03-12 19:04:22 +00:00
grub2 Merge "Allow grub2 to build with opensuse" 2015-12-16 01:25:10 +00:00
hpdsa Add a new element hpdsa 2015-12-10 20:12:14 +00:00
hwburnin Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
hwdiscovery Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00
ilo Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
install-bin Add install-bin element 2016-05-13 11:52:23 +10:00
install-static Install-static depends on rsync 2015-08-17 16:21:09 +00:00
install-types Break install-types out of base 2015-04-14 13:39:18 -04:00
ironic-agent Generate and use upper-constraints for ironic-agent 2016-08-29 21:05:04 +00:00
ironic-discoverd-ramdisk dmidecode does not exist for ppc64/ppc64el 2016-06-29 16:51:46 -05:00
iso Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
local-config Export die() function 2016-05-27 09:25:22 +10:00
manifests Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
mellanox Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
modprobe-blacklist Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
no-final-image Generalize logic for skipping final image generation 2016-07-28 13:14:36 -05:00
oat-client Add oat-client element 2015-06-26 09:57:12 +08:00
opensuse Add cinder-backup mappings 2016-06-07 14:15:47 +02:00
package-installs package-installs: add list to arch and "not-arch" list 2016-07-01 21:31:59 +02:00
partitioning-sfdisk Merge "Export die() function" 2016-06-07 01:00:50 +00:00
pip-and-virtualenv Revert "Revert "Pre-install pip/virtualenv packages"" 2016-07-14 13:54:41 +10:00
pip-cache Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
pkg-map Convert pkg-map and svc-map copies to explicit variables 2016-09-08 11:10:19 +10:00
posix Add new posix element. 2016-03-20 10:42:34 -07:00
proliant-tools Fix proliant-tools dependencies 2016-07-20 14:50:21 -07:00
pypi Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
ramdisk Merge "Add element ubuntu-signed to provide signed kernel" 2015-04-28 11:02:44 +00:00
ramdisk-base Adding InfiniBand Support 2016-02-17 04:43:29 +00:00
rax-nova-agent rax-nova-agent: switch to $DISTRO_NAME 2015-05-12 17:48:49 +02:00
redhat-common Allow to skip kernel cleanup 2016-08-12 12:49:19 +02:00
rhel Add a best-effort sudo safety check 2016-05-09 15:41:38 +10:00
rhel7 Run RHEL system unregister element earlier 2016-06-22 17:10:04 +02:00
rhel-common Run RHEL system unregister element earlier 2016-06-22 17:10:04 +02:00
rpm-distro secure_path in sudoers: deal with possible quotes 2016-08-03 15:24:07 +02:00
select-boot-kernel-initrd Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
selinux-permissive Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
serial-console Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
simple-init Fix OpenSUSE support 2016-05-03 22:23:51 -07:00
source-repositories Merge "Cleanup source-repositories output" 2016-06-07 00:59:02 +00:00
stable-interface-names Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
svc-map Convert pkg-map and svc-map copies to explicit variables 2016-09-08 11:10:19 +10:00
uboot Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
ubuntu Set DIB_RELEASE in ubuntu element 2015-03-04 23:11:27 +00:00
ubuntu-core Merge "Make ubuntu-core support releases" 2016-07-06 23:49:31 +00:00
ubuntu-minimal Merge "Add tests for building *-minimal images" 2016-09-01 05:44:03 +00:00
ubuntu-signed Add element ubuntu-signed to provide signed kernel 2015-04-12 11:36:17 -07:00
vm Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
yum Add install-bin element 2016-05-13 11:52:23 +10:00
yum-minimal Add "audit"package to yum-minimal 2016-08-08 17:54:20 +10:00
zypper Standarise tracing for scripts 2015-02-12 10:41:32 +11:00