diskimage-builder/elements/base
Ben Nemec 417b511147 Truncate instead of deleting log files
For package installs we need to be able to fix up permissions in
/var/log at install time, and if we delete all of the files then
those permission fixes get lost.  To deal with that, we can just
empty the files instead of deleting them.

Change-Id: I70abb354e4dc726ec7a176694c7c6e9455d89d08
2014-08-28 19:18:30 -05:00
..
cleanup.d Truncate instead of deleting log files 2014-08-28 19:18:30 -05:00
environment.d introduce $SYSTEMD_SYSTEM_UNIT_DIR 2014-06-17 19:34:29 +02:00
extra-data.d set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
finalise.d set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
install.d Update base element to make use of pkg-map 2014-06-20 16:02:28 -04:00
pre-install.d Use $DISTRO_NAME instead of local lsb_release 2014-06-26 16:47:21 -04:00
root.d set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
dib-first-boot set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
dib-init-system set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
element-deps Update base element to make use of pkg-map 2014-06-20 16:02:28 -04:00
pkg-map Update base element to make use of pkg-map 2014-06-20 16:02:28 -04:00
README.md Move /tmp/ccache setup to base element 2013-10-10 16:27:09 +11:00

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.

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.