diskimage-builder/diskimage_builder/elements
Nir Magnezi ee46e2f9b7 Add version-less RHEL element for RHEL7 and RHEL8
Make a version-less RHEL element to handle both '7' and '8' DIB_RELEASE.
The element usage should align with other elements which operate in the
same way such as the Fedora element.

Additionally, this patch adds support for RHEL8 that operates with
Python 3.
As of now, users of diskimage-builder will still be able to use the
'rhel7' element, or migrate to 'rhel' and specify their respective
DIB_RELEASE value.

* mount the xfs file-system for extraction as read-only.  vaguely
  based on explaination in [1] and the fact we only read the image
  data into a tar, so can ignore this.

    XFS (dm-1): Superblock has unknown read-only compatible features (0x4) enabled.

* Use the redhat system python as the dib-python version.  dib was
  ahead of it's time making an abstracted python interpreter for
  system work ;) the system python should work for running the various
  dib element scripts.

[1] https://unix.stackexchange.com/questions/247550/unmountable-xfs-filesystem

Redhat-Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1700253
Co-Authored-By: Ian Wienand <iwienand@redhat.com>
Change-Id: I90540675c70bb475d9db2ae24f81c648a31f3f95
2019-05-29 11:28:53 +03:00
..
apt-conf
apt-preferences
apt-sources Use local mirror for ubuntu-minimal jobs 2017-06-21 12:01:31 +10:00
baremetal
base Drop support for Ubuntu precise 2017-05-31 14:36:30 +02:00
block-device-efi Increase size of EFI system partition 2018-10-31 14:38:28 +00:00
block-device-gpt Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
block-device-mbr Choose appropriate bootloader for block-device 2018-02-23 10:04:44 +11:00
bootloader Only append DIB_BOOTLOADER_DEFAULT_CMDLINE to default grub entry 2018-09-13 09:51:50 +10:00
cache-url Fix unit tests for elements 2018-11-28 11:04:50 +11:00
centos7 Minor clarifications in centos7 element docs 2019-03-20 17:23:34 +01:00
centos-minimal Start at using CI mirrors for fedora/centos 2017-06-21 12:02:27 +10:00
cleanup-kernel-initrd
cloud-init
cloud-init-datasources Drop support for Ubuntu precise 2017-05-31 14:36:30 +02:00
cloud-init-disable-resizefs
cloud-init-nocloud
debian Fix element-provides in debian element 2018-03-26 10:58:04 -07:00
debian-minimal debian-minimal buster support 2019-04-04 16:10:08 +11:00
debian-systemd Install systemd earlier for Stretch 2017-06-19 13:27:33 +10:00
debian-upstart Install systemd earlier for Stretch 2017-06-19 13:27:33 +10:00
debootstrap debian-minimal buster support 2019-04-04 16:10:08 +11:00
deploy-baremetal
deploy-kexec
deploy-targetcli
deploy-tgtadm
devuser install sudo in the devuser element 2018-03-22 00:16:09 -05:00
dhcp-all-interfaces Merge "Fix /etc/network/interfaces file contents" 2018-07-10 07:46:56 +00:00
dib-init-system allow building non-gentoo images on gentoo hosts 2018-04-12 13:24:59 -05:00
dib-python Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
dib-run-parts Trivial fix typos 2017-05-31 11:17:05 +07:00
disable-nouveau Add DIB element to blacklist nouveau 2018-07-25 16:35:58 +01:00
disable-selinux/post-install.d
dkms
docker Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
dpkg Fixes add-apt-keys in dpkg element 2018-05-09 12:06:20 -05:00
dracut-network Remove dracut-network element 2017-05-31 08:36:56 +10:00
dracut-ramdisk Merge "Remove use of 'which'." 2017-06-11 09:30:34 +00:00
dracut-regenerate Merge "Add missing package dependency for yaml" 2017-09-15 13:52:35 +00:00
dynamic-login
element-manifest
enable-serial-console
epel Fix epel repo rewrite, add to testing 2018-10-24 12:39:59 +11:00
fedora Fix Fedora aarch64 image location 2019-04-09 15:50:55 +00:00
fedora-minimal Update to Fedora 29 2018-11-16 09:05:08 +00:00
gentoo Merge "Update gentoo-releng gpg key" 2019-02-28 00:33:06 +00:00
growroot
grub2 Fix grub2 dependency on arm64 2017-10-16 13:39:34 +08:00
hpdsa
hwburnin
hwdiscovery Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ibft-interfaces Add an element to configure iBFT network interfaces 2018-11-20 14:11:11 +01:00
ilo
install-bin
install-static
install-types
ironic-agent Replace git.openstack.org URLs with opendev.org URLs 2019-04-29 20:15:25 +10:00
iscsi-boot Change phase to check for dracut-regenerate in iscsi-boot 2019-01-02 11:05:00 +01:00
iso Fix for rhel7 iso image creation. 2018-02-28 06:31:34 -06:00
local-config
lvm [lvm] Add Ubuntu bionic as supported distro 2019-03-04 15:05:37 -05:00
manifests Set manifest permissions in the image 2017-05-24 15:20:55 +10:00
mellanox
modprobe Allow debootstrap to cleanup without a kernel 2018-10-08 16:02:25 +11:00
modprobe-blacklist Add new modprobe element 2018-06-28 13:55:53 +02:00
no-final-image
oat-client
openssh-server openssh-server: harden sshd config 2019-05-01 11:42:21 -04:00
openstack-ci-mirrors Native zuulv3 tests 2018-10-29 12:46:15 +11:00
opensuse Update test coverage for openSUSE/-minimal to 15.0 2019-05-08 14:59:51 +00:00
opensuse-minimal Update test coverage for openSUSE/-minimal to 15.0 2019-05-08 14:59:51 +00:00
package-installs package-installs: provide for skip from env var 2018-11-30 10:02:47 +11:00
pip-and-virtualenv Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
pip-cache Fix DIB ubuntu-minimal running on bionic (18.04) 2018-10-01 19:59:30 -07:00
pkg-map Turn down pkg-map and hook copy tracing output 2018-10-18 11:03:17 +11:00
posix Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
proliant-tools Trivial: update url to new url 2018-05-13 23:06:00 +08:00
pypi Replace git.openstack.org URLs with opendev.org URLs 2019-04-29 20:15:25 +10:00
python-brickclient
ramdisk Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ramdisk-base Remove use of 'which'. 2017-05-19 12:43:36 -07:00
rax-nova-agent
redhat-common Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
rhel Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
rhel7 Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00
rhel-common Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
rpm-distro Also use selinuxenabled to check selinux status 2019-03-28 14:20:24 +01:00
runtime-ssh-host-keys
select-boot-kernel-initrd
selinux-permissive move selinux-permissive configure to pre-install phase 2018-11-19 13:13:57 +11:00
simple-init Switch simple-init to support python3 2019-05-02 19:38:16 -04:00
source-repositories Replace openstack.org git:// URLs with https:// 2019-03-22 01:35:42 +00:00
stable-interface-names
svc-map Add version-less RHEL element for RHEL7 and RHEL8 2019-05-29 11:28:53 +03:00
sysctl
sysprep Clear /etc/machine-id to avoid duplicate machine-ids 2017-08-06 13:56:58 -04:00
uboot
ubuntu Merge "Fix DIB_DISTRIBUTION_MIRROR_UBUNTU_IGNORE regex typo" 2018-10-19 04:01:21 +00:00
ubuntu-common ubuntu-common: Update default DIB_RELEASE to bionic 2018-09-20 02:06:04 +01:00
ubuntu-minimal Remove redundant sources change/update 2018-09-20 00:05:07 +00:00
ubuntu-signed Use sphinx warning-is-error 2017-03-14 14:49:49 +11:00
ubuntu-systemd-container Add ubuntu-systemd-container operating-system element 2018-10-31 14:22:28 +11:00
vm Add block-device defaults 2018-02-23 10:04:40 +11:00
yum
yum-minimal Use fedora-release-common for fedora 30+ 2019-05-07 12:08:50 +00:00
zipl Delete the duplicate words in 50-zipl 2019-01-07 10:02:35 +08:00
zypper zypper: fix package removal 2017-12-05 22:59:20 +00:00
zypper-minimal Update test coverage for openSUSE/-minimal to 15.0 2019-05-08 14:59:51 +00:00
__init__.py Fix unit tests for elements 2018-11-28 11:04:50 +11:00