summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2016-05-03 15:17:00 +0100
committerJavier Jardón <jjardon@gnome.org>2016-05-04 13:13:38 +0000
commitcf278838cfcf4bd808a57b9bef0e861d6402f19b (patch)
treeda65a266bde1995f3c49aabab4ce3e7fc8797e8b
parent046148d9b4649b53fbdbfdbef52c07472d1d411e (diff)
downloaddefinitions-cf278838cfcf4bd808a57b9bef0e861d6402f19b.tar.gz
Add --enable-split-usr to systemd configuration
systemd assumes /bin and /sbin are symlinks into /usr unless HAVE_SPLIT_USR is defined, and so does not append them (/bin and /sbin) to the PATH for spawned processes. Fixes trove-setup.service failing due to /sbin and /bin not being in PATH: TASK: [trove-setup | Change the hostname to HOSTNAME] ****************** failed: [localhost] => {"changed": true, "cmd": "hostname emon", "delta": "0:00:00.002074", "end": "2016-05-03 14:58:31.459438", "rc": 127, "start": "2016-05-03 14:58:31.457364", "warnings": []} stderr: /bin/sh: hostname: not found Change-Id: I6f4d49363554e8b55265027cff4b52b0f8689cc4
-rw-r--r--strata/foundation/systemd.morph1
1 files changed, 1 insertions, 0 deletions
diff --git a/strata/foundation/systemd.morph b/strata/foundation/systemd.morph
index ae95cf9b..ae1f6a14 100644
--- a/strata/foundation/systemd.morph
+++ b/strata/foundation/systemd.morph
@@ -9,6 +9,7 @@ configure-commands:
--disable-manpages
--disable-tests
--libexecdir="$PREFIX/libexec"
+ --enable-split-usr
post-install-commands:
- mkdir -p "$DESTDIR"/sbin
- ln -s "$PREFIX"/lib/systemd/systemd "$DESTDIR"/sbin/init