diskimage-builder/diskimage_builder/elements
Ian Wienand 4dbfab66a1 Pre-install python3 for CentOS
CentOS 7 is the only distro we support currently that doesn't have
Python 3 installed in some form in the base images.  For centos 7 add
an early install of it in the yum element so we can have all the
in-chroot scripts assume Python 3.  There is only one package that
causes issues; yaml which comes from EPEL.  Everywhere else it is a
base package, but we don't have a way to say "enable epel to install
this".  Just hack it in, we don't want to go reworking the world for
CentOS 7 at this point.

Also add python3 and it's yaml library to the centos 8 path.  This
brings in the "user" python3 in /urs/bin/python3 (the "system" python3
is already installed).  Again, this just lets us assume
/usr/bin/python3 in scripts for all platforms.

package-installs is one of these things running python in the chroot,
and unfortunately we have elements that use it at 01- level in
pre-installd.  Thus to make sure python3 is there nice and early, run
it at 0 level, but make sure it comes after yum/dnf update.

Change-Id: I088fc4284e889147ca9a375d4a159264cff53484
2020-08-07 10:34:03 +10:00
..
apt-conf
apt-preferences
apt-sources Use local mirror for ubuntu-minimal jobs 2017-06-21 12:01:31 +10:00
baremetal Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
base Debuntu: add apt-transport-https 2020-04-02 10:11:35 +11:00
block-device-efi Increase size of EFI system partition (again) 2019-05-31 17:10:08 +10:00
block-device-gpt
block-device-mbr
bootloader update grub cmdline to current kernel parameters 2020-06-14 00:39:42 -05:00
cache-url Fix cache-url -f 2020-02-05 10:19:12 +01:00
centos Support non-x86_64 DIB_DISTRIBUTION_MIRROR variable for CentOS 7 2020-07-20 10:33:01 +10:00
centos7 Add CentOS 8 support 2020-02-19 10:44:56 +01:00
centos-minimal Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02: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
debian-minimal Introduce manual setting of DIB_INIT_SYSTEM 2019-11-21 12:38:15 +11:00
debian-systemd
debian-upstart
debootstrap Ensure machine-id is not included in images 2019-09-20 03:17:50 +00:00
deploy-baremetal
deploy-kexec
deploy-targetcli
deploy-tgtadm
devuser
dhcp-all-interfaces Merge "Install ndisc6 package in element script" 2019-12-03 22:41:09 +00:00
dib-init-system Introduce manual setting of DIB_INIT_SYSTEM 2019-11-21 12:38:15 +11:00
dib-python Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00
dib-run-parts Revert "dib-lint: use yamllint to parse YAML files" 2020-05-28 16:44:49 +10:00
disable-nouveau Ensure nouveau is blacklisted in initramfs too 2019-10-23 10:16:00 +11:00
disable-selinux dib-lint: test elements have README.rst file 2020-01-20 11:43:43 +01:00
dkms Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
docker
dpkg Adds support for GPG keyring 2019-11-07 17:32:05 -03:00
dracut-network Remove dracut-network element 2017-05-31 08:36:56 +10:00
dracut-ramdisk
dracut-regenerate Ensure nouveau is blacklisted in initramfs too 2019-10-23 10:16:00 +11:00
dynamic-login
element-manifest
enable-serial-console add openrc init system support to serial console element 2020-07-14 13:59:09 -05:00
ensure-venv Add ensure-venv element, install glean with it 2020-03-10 11:57:43 +11:00
epel Disable all enabled epel repos in CentOS8 2020-06-30 10:15:30 +05:30
fedora Add Fedora 31 support and test jobs 2020-03-30 08:47:00 +11:00
fedora-minimal Add Fedora 31 support and test jobs 2020-03-30 08:47:00 +11:00
gentoo update gentoo-releng gpg key 2020-07-12 17:50:00 -05:00
growroot Revert "dib-lint: use yamllint to parse YAML files" 2020-05-28 16:44:49 +10:00
grub2 Use x86 architeture specific grub2 packages for RHEL 2019-09-12 15:06:17 -04:00
hpdsa
hwburnin
hwdiscovery
ibft-interfaces
ilo
install-bin pip-and-virtualenv: drop f31 & tumbleweed, rework suse 15 install 2020-04-23 08:10:26 +10:00
install-static
install-types
ironic-agent Merge "Change tgt pkg-map to target-restore CentOS/RHEL-8" 2020-02-26 04:05:56 +00:00
iscsi-boot fix iscsi-boot element exiting build even if dracut-regenerate used 2020-02-12 09:09:20 +00:00
iso
journal-to-console journal-to-console: element to send systemd journal to console 2019-07-25 11:24:49 +10:00
local-config
lvm [lvm] Add Ubuntu bionic as supported distro 2019-03-04 15:05:37 -05:00
manifests
mellanox Mellanox element: removed ibutils,libibcm,libmlx4-dev 2020-03-23 00:06:53 +02:00
modprobe modprobe.d: use $TMP_MOUNT_PATH 2019-12-18 11:42:02 -05:00
modprobe-blacklist Add new modprobe element 2018-06-28 13:55:53 +02:00
no-final-image
oat-client Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
openssh-server
openstack-ci-mirrors Merge "Add arm64 based functional test" 2019-12-16 21:31:51 +00:00
opensuse Introduce manual setting of DIB_INIT_SYSTEM 2019-11-21 12:38:15 +11:00
opensuse-minimal Introduce manual setting of DIB_INIT_SYSTEM 2019-11-21 12:38:15 +11:00
package-installs Pre-install python3 for CentOS 2020-08-07 10:34:03 +10:00
pip-and-virtualenv Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00
pip-cache
pkg-map Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00
posix
proliant-tools Trivial: update url to new url 2018-05-13 23:06:00 +08:00
pypi Stop installing pydistutils.cfg 2019-11-25 11:46:42 +11:00
python-brickclient Merge branch 'master' into merge-branch 2017-02-09 13:35:53 +11:00
python-stow-versions Add python-stow-versions element 2020-03-19 21:21:01 +02:00
ramdisk
ramdisk-base
rax-nova-agent
redhat-common Use rpm -e instead of dnf for cleaning old kernels 2020-03-19 22:35:23 +01:00
rhel Create /etc/machine-id for RHEL images 2019-08-07 18:18:34 +10:00
rhel7
rhel-common
rpm-distro dib-lint: test elements have README.rst file 2020-01-20 11:43:43 +01:00
runtime-ssh-host-keys
select-boot-kernel-initrd
selinux-permissive
simple-init Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00
source-repositories
stable-interface-names
svc-map Fix DIB scripts python version 2020-07-07 12:53:51 -07:00
sysctl
sysprep Ensure machine-id is not included in images 2019-09-20 03:17:50 +00:00
uboot
ubuntu Fixes DIB_DISTRIBUTION_MIRROR_UBUNTU_IGNORE matching when empty 2019-08-09 10:26:48 +00:00
ubuntu-common Introduce manual setting of DIB_INIT_SYSTEM 2019-11-21 12:38:15 +11:00
ubuntu-minimal Adds gnupg2 for apt-keys in ubuntu-minimal 2020-07-27 16:45:53 +02:00
ubuntu-signed
ubuntu-systemd-container
vm
yum Pre-install python3 for CentOS 2020-08-07 10:34:03 +10:00
yum-minimal Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00
zipl Delete the duplicate words in 50-zipl 2019-01-07 10:02:35 +08:00
zypper Fix login.defs config for tumbleweed 2019-12-02 16:21:45 -08:00
zypper-minimal Pre-install xz package in opensuse chroot 2020-05-27 10:45:03 -07:00
__init__.py