diskimage-builder/elements
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
..
apt-conf set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
apt-sources set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
baremetal set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
base introduce $SYSTEMD_SYSTEM_UNIT_DIR 2014-06-17 19:34:29 +02:00
cache-url 4 spaces indent 2014-05-10 11:17:29 +02:00
cloud-init-nocloud set -e all the things 2014-04-25 17:38:51 -05:00
debian Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
debian-systemd set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
debian-upstart set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
deploy-baremetal Merge "Remove the temporary deploy element after rename" 2014-05-22 10:48:50 +00:00
deploy-ironic set -e all the things 2014-04-25 17:38:51 -05:00
deploy-kexec add some missing \n at end of file 2014-05-06 13:43:53 +02:00
dhcp-all-interfaces 4 spaces indent 2014-05-10 11:17:29 +02:00
dib-run-parts 4 spaces indent 2014-05-10 11:17:29 +02:00
disable-selinux/post-install.d set -e all the things 2014-04-25 17:38:51 -05:00
dkms 4 spaces indent 2014-05-10 11:17:29 +02:00
dpkg 4 spaces indent 2014-05-10 11:17:29 +02:00
dracut-network 4 spaces indent 2014-05-10 11:17:29 +02:00
fedora Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
hwburnin Make sorting of ramdisk init elements explicit. 2013-11-15 17:18:34 +00:00
hwdiscovery set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
local-config 4 spaces indent 2014-05-10 11:17:29 +02:00
manifests set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
mellanox set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
modprobe-blacklist set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
opensuse Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
package-installs Support declarative package installs/uninstalls 2014-05-01 08:47:14 -04:00
pip-cache set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
pkg-map Add pkg-map element. 2014-05-28 12:21:44 -04:00
pypi 4 spaces indent 2014-05-10 11:17:29 +02:00
ramdisk Merge "Ensure we can read the kernel out." 2014-05-20 03:18:42 +00:00
redhat-common Merge "add some missing \n at end of file" 2014-05-28 00:40:57 +00:00
rhel Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
rhel7 Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
rpm-distro 4 spaces indent 2014-05-10 11:17:29 +02:00
selinux-permissive add some missing \n at end of file 2014-05-06 13:43:53 +02:00
serial-console set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00
source-repositories Add support for source-repos gerrit refs 2014-05-23 16:00:22 +01:00
stable-interface-names set -e all the things 2014-04-25 17:38:51 -05:00
ubuntu Set DISTRO_NAME in OS environment.d 2014-05-28 12:22:02 -04:00
vm 4 spaces indent 2014-05-10 11:17:29 +02:00
yum Stop using bash arrays for whitelisting in yum 2014-05-22 19:05:28 +10:00
zypper set -u and -o pipefail everywhere 2014-05-06 15:51:07 -05:00