diskimage-builder/diskimage_builder/elements/ubuntu
Marco Vaschetto 1f4fb1d7a5 Allowing ubuntu element use local image
Patch allow to set path for local image source,
instead download latest or use the cached image.
This permit to build image also in environment without internet access.

Change-Id: I9422e21c5d0445e31d5a7258aa7310b20e39b929
2021-09-27 20:56:06 +02:00
..
environment.d Allowing ubuntu element use local image 2021-09-27 20:56:06 +02:00
post-install.d Run autoremove on post-install step 2020-11-17 09:23:35 +00:00
pre-install.d Fixes DIB_DISTRIBUTION_MIRROR_UBUNTU_IGNORE matching when empty 2019-08-09 10:26:48 +00:00
root.d Allowing ubuntu element use local image 2021-09-27 20:56:06 +02:00
test-elements Add Ubuntu 18.04 support 2018-05-18 14:47:20 +10:00
element-deps Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
element-provides Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
package-installs.yaml Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
README.rst Allowing ubuntu element use local image 2021-09-27 20:56:06 +02:00

======
ubuntu
======

Use Ubuntu cloud images as the baseline for built disk images.

Overrides:

 * To use a non-default URL for downloading base Ubuntu cloud images,
   use the environment variable ``DIB_CLOUD_IMAGES``
 * To download a non-default release of Ubuntu cloud images, use the
   environment variable ``DIB_RELEASE``. This element will export the
   ``DIB_RELEASE`` variable.
 * Use ``DIB_DISTRIBUTION_MIRROR`` to override the ``sources.list``
   with an alternative mirror
 * Setting ``DIB_DISTRIBUTION_MIRROR_UBUNTU_IGNORE`` to an
   extended-regexp (i.e. the argument to the ``=~`` bash comparitor)
   which, when matched, will *not* set that line to the
   ``DIB_DISTRIBUTION_MIRROR``.  For example, if your local mirror
   does not mirror the universe and multiverse components, set this to
   ``(universe|multiverse)``
 * Setting ``DIB_DISTRIBUTION_MIRROR_UBUNTU_INSECURE`` updates apt
   settings to allow insecure/unuthenticated repositories.
 * Setting ``DIB_OFFLINE`` will prevent to download again the source image
   if is already present in to $DIB_IMAGE_CACHE path.
 * Setting ``DIB_LOCAL_IMAGE`` in combination with ``DIB_OFFLINE`` to
   use a image from a local source (full path and file name) and not
   download image from internet. Local source for release Trusty and Xenial
   have to be tar.gz format. For other more recent release get the squashfs image.

.. element_deps::