diskimage-builder/elements/base/environment.d
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
..
10-ccache.bash Place /usr/lib64/ccache in PATH 2014-04-23 01:18:29 +01:00
10-dib-init-system.bash Fixed command dib-init-system not found error 2014-01-03 17:42:21 +08:00
10-SYSTEMD_SYSTEM_UNIT_DIR.bash introduce $SYSTEMD_SYSTEM_UNIT_DIR 2014-06-17 19:34:29 +02:00