From cf278838cfcf4bd808a57b9bef0e861d6402f19b Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Tue, 3 May 2016 15:17:00 +0100 Subject: 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 --- strata/foundation/systemd.morph | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1