e64a6f8c9a
Running 'disk-image-create -a amd64 -o precise vm precise' will fail to build with the following error [1]. To fix this, we should split out the switch-case to allow base to install the 'software-properties-common' package. [1] dib-run-parts Fri Mar 18 18:43:16 UTC 2016 Running /tmp/in_target.d/pre-install.d/03-baseline-tools Hit:1 http://mirrors.cat.pdx.edu/ubuntu precise InRelease Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Package python-software-properties is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: software-properties-common E: Package 'python-software-properties' has no installation candidate Change-Id: I011f02fcf70df9d1d6fa30ed89907fbc2588937e |
||
---|---|---|
.. | ||
cleanup.d | ||
environment.d | ||
extra-data.d | ||
install.d | ||
pre-install.d | ||
root.d | ||
element-deps | ||
package-installs.yaml | ||
pkg-map | ||
README.rst |
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.)
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
- This element ensures /tmp/ccache will be available in the chroot during the root, extra-data, pre-install, install and post-install stages. /tmp/ccache is unavailable during block-device, finalise and cleanup stages as it will have been automatically unmounted by then.