commit | 3fdd05ea9ac2fc71061cfc8c2726d2bd0d9b3bf3 | [log] [tgz] |
---|---|---|
author | Michael Tritz <mtritz@us.ibm.com> | Tue Aug 15 14:07:23 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Aug 24 21:14:19 2017 +0000 |
tree | 81fa71291a2066eb89b9538f5af8189c83fa8740 | |
parent | 37afb36b39651efa9269b06de1c552c33d268aba [diff] |
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-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service index f8ac318..159b3cc 100644 --- a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service +++ b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service
@@ -5,4 +5,5 @@ Restart=no RemainAfterExit=true Type=oneshot -ExecStart={sbindir}/init_once.sh +ExecStart=/usr/bin/env init_once.sh +SyslogIdentifier=init_once.sh
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service index d8159a1..9b96ce7 100644 --- a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service +++ b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service
@@ -7,7 +7,8 @@ [Service] RemainAfterExit=yes Type=oneshot -ExecStart={sbindir}/poweroff.sh +ExecStart=/usr/bin/env poweroff.sh +SyslogIdentifier=poweroff.sh [Install] WantedBy=obmc-chassis-power-off@0.target
diff --git a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service index ee505c9..69720c9 100644 --- a/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service +++ b/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service
@@ -7,7 +7,8 @@ [Service] RemainAfterExit=yes Type=oneshot -ExecStart={sbindir}/poweron.sh +ExecStart=/usr/bin/env poweron.sh +SyslogIdentifier=poweron.sh [Install] WantedBy=obmc-chassis-poweron@0.target