diskimage-builder/elements/base
Gonéri Le Bouder 4bf38a829a introduce $SYSTEMD_SYSTEM_UNIT_DIR
export $SYSTEMD_SYSTEM_UNIT_DIR to know where .service files should be
moved.
So far those files are moved directly in /usr/lib/systemd/system whereas
Debian use /lib/systemd/system.

We load the value from the systemd pkg-config file.

The patch don't use pkg-config directly for three reasons:
 - environment.d files are run before install.d and the other similar
 targets, making hard to install an additional dependency
 - the .pc file can easily be parsed using awk
 - pkg-config package name is not standard across the different
 supported distributions

$SYSTEMD_SYSTEM_UNIT_DIR default value is /lib because, as pointed by James
Slagle, /lib is actually a symlink to /usr/lib/ on Fedora and will work
for Debian and Fedora.

See: https://bugs.debian.org/719634

Change-Id: I413a92284e6a79e7fcdde99c5138bc3ce8e85e80
2014-06-17 19:34:29 +02:00
..
cleanup.d set -u and -o pipefail everywhere 2014-05-06 15:51:07 -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 4 spaces indent 2014-05-10 11:17:29 +02:00
pre-install.d 4 spaces indent 2014-05-10 11:17:29 +02: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
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.