diskimage-builder/diskimage_builder/elements/base
Noam Angel 8b83196024 Add option to skip update packages
in same cases it is required to avoid update all existing packages,
doing so can result in release update which is currently not possible
unless you not include "base" element.

"base" element used for most distribution (rhel, debain), and is
necessary for most cloud operations, this patch add 
"DIB_AVOID_PACKAGES_UPDATE" parameter to skip updating all packages.

usecases for this patch can be:
 * Avoid release update when building old release ex. RHEL7.5.
 * build on network-less environment.

usage:
DIB_AVOID_PACKAGES_UPDATE=1

or
DIB_AVOID_PACKAGES_UPDATE=0

Change-Id: I71192b23c8f0bc48b348fe7377bf8a2399b53792
2019-02-25 06:31:30 +00:00
..
environment.d Add option to skip update packages 2019-02-25 06:31:30 +00:00
install.d Add option to skip update packages 2019-02-25 06:31:30 +00:00
pre-install.d Drop support for Ubuntu precise 2017-05-31 14:36:30 +02:00
element-deps Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
pkg-map Merge "drop deprecated map-services/packages from zypper element" 2017-05-31 02:11:21 +00:00
README.rst Add option to skip update packages 2019-02-25 06:31:30 +00:00

====
base
====
This is the base element.

Almost all users will want to include this in their disk image build,
as it includes a lot of useful functionality.

The `DIB_CLOUD_INIT_ETC_HOSTS` environment variable can be used to
customize cloud-init's management of `/etc/hosts`:

 * If the variable is set to something, write that value as
   cloud-init's manage_etc_hosts.

 * If the variable is set to an empty string, don't create
   manage_etc_hosts setting (cloud-init will use its default value).

 * If the variable is not set, use "localhost" for now. Later, not
   setting the variable will mean using cloud-init's default. (To
   preserve diskimage-builder's current default behavior in the
   future, set the variable to "localhost" explicitly.)

The 'DIB_AVOID_PACKAGES_UPDATE' environment variable can be used to
avoid updating all packages, useful when wanting to avoid release
update.

 * 'DIB_AVOID_PACKAGES_UPDATE' default is '0', all packages will be updated.

 * set 'DIB_AVOID_PACKAGES_UPDATE' to '1' to avoid updating all packages.

Notes:

 * If you are getting warnings during the build about your locale
   being missing, consider installing/generating the relevant locale.
   This may be as simple as having language-pack-XX installed in the
   pre-install stage