Merge "Permit specification of extra bootstrap packages"

This commit is contained in:
Zuul 2021-08-03 23:13:04 +00:00 committed by Gerrit Code Review
commit 4f5689a409
3 changed files with 15 additions and 2 deletions

View File

@ -22,3 +22,8 @@ image.
If you wish to include extra repositories, set ``DIB_YUM_MINIMAL_EXTRA_REPOS`` If you wish to include extra repositories, set ``DIB_YUM_MINIMAL_EXTRA_REPOS``
to a directory with the ``.repo`` files. The repo files will not be removed to a directory with the ``.repo`` files. The repo files will not be removed
from the final image. from the final image.
If you are bootstrapping a custom or unsupported OS, and need to install
additional packages to setup the base chroot, set
``DIB_YUM_MINIMAL_BOOTSTRAP_PACKAGES`` to the list of additional packages to
install.

View File

@ -71,8 +71,8 @@ function _install_repos {
# is that they are only installed in one big transaction with the # is that they are only installed in one big transaction with the
# rest of the system? but we don't want to use yum to do this # rest of the system? but we don't want to use yum to do this
# (see above) so ... # (see above) so ...
packages="basesystem filesystem setup " packages="${DIB_YUM_MINIMAL_BOOTSTRAP_PACKAGES:-} "
packages+="basesystem filesystem setup "
if [[ ${DISTRO_NAME} = fedora && ${DIB_RELEASE} -gt 29 ]]; then if [[ ${DISTRO_NAME} = fedora && ${DIB_RELEASE} -gt 29 ]]; then
packages+="fedora-release-cloud fedora-release-common " packages+="fedora-release-cloud fedora-release-common "
else else

View File

@ -0,0 +1,8 @@
---
features:
- |
Now, users of the ``yum-minimal`` element can specify additional packages
to install while creating the initial chroot by setting
``DIB_YUM_MINIMAL_BOOTSTRAP_PACKAGES``. This can be useful for adding
support for new linux distributions that use yum.