Enable BMC patching from the /usr/local path
This commit enables patches from the /usr/local path by replacing
absolute paths to /usr/sbin or /usr/bin in every service file with
"/usr/bin/env ". Additionally, SyslogIdentifier is added to each
file to ensure that journal entries are still distinct.
In two cases, service files also had to change due to references
to ${{PATH}}, which doesn't work with /usr/bin/env. These
references - and the corresponding definitions - were changed to
${{DEVPATH}}.
Resolves openbmc/openbmc#2149
Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
diff --git a/meta-romulus/recipes-phosphor/chassis/cpld-trigger/cpld_reset@.service b/meta-romulus/recipes-phosphor/chassis/cpld-trigger/cpld_reset@.service
index e312a96..c59461e 100644
--- a/meta-romulus/recipes-phosphor/chassis/cpld-trigger/cpld_reset@.service
+++ b/meta-romulus/recipes-phosphor/chassis/cpld-trigger/cpld_reset@.service
@@ -5,7 +5,8 @@
Conflicts=obmc-chassis-poweron@%i.target
[Service]
-ExecStart={bindir}/cpld_reset.sh
+ExecStart=/usr/bin/env cpld_reset.sh
+SyslogIdentifier=cpld_reset.sh
Type=oneshot
RemainAfterExit=yes