diskimage-builder/elements/redhat-common
Ben Nemec 0eccd2808c Allow source-repositories to be disabled completely
In our official image builds we are only allowed to use resources
that are "blessed" by the build system.  This means that external
things like git repos and tar files are not allowed.  Currently,
even in offline mode source-repositories expects those things to
be available in the cache, so we need a way to disable it entirely.

This change adds an environment variable NO_SOURCE_REPOSITORIES
that does so.  It can be set in an environment.d script so elements
that might rely on a source repository will know it's not available.
The 02-lsb script in redhat-common is one such example and is
updated to handle this case.

Change-Id: I0de63bee6ad79733d6711478c707a9b41593e85f
2014-10-15 12:24:50 -04:00
..
bin Save extended attributes when creating tar 2014-10-03 23:05:17 -05:00
finalise.d Correction: if then statement code style. 2014-07-07 03:43:15 -07:00
install.d Use package-installs in more elements 2014-09-08 15:16:14 -04:00
pre-install.d Allow source-repositories to be disabled completely 2014-10-15 12:24:50 -04:00
element-deps Use package-installs in more elements 2014-09-08 15:16:14 -04:00
README.md add some missing \n at end of file 2014-05-06 13:43:53 +02:00

Image installation steps common to RHEL and Fedora.

Overrides:

  • To use a non-default URL for downloading base cloud images, use the environment variable DIB_CLOUD_IMAGES
  • To download a non-default release of cloud images, use the environment variable DIB_RELEASE
  • Alternatively, set DIB_LOCAL_IMAGE to the local path of a qcow2 cloud image. This is useful in that you can use a customized or previously built cloud image from diskimage-builder as input. The cloud image does not have to have been built by diskimage-builder. It should be a full disk image, not just a filesystem image.