diff options
author | Michael Tritz <mtritz@us.ibm.com> | 2017-08-15 14:07:23 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-24 21:14:19 +0000 |
commit | 0ad3b1df9079064491c8318bece22e63cc71b2f4 (patch) | |
tree | a7321a843e14fadb541f92aa965740e02015ebdd /meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l | |
parent | 0c75c0b0f709aaa9e56033c19daf8d074c7aeb6d (diff) | |
download | talos-openbmc-0ad3b1df9079064491c8318bece22e63cc71b2f4.tar.gz talos-openbmc-0ad3b1df9079064491c8318bece22e63cc71b2f4.zip |
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>
Diffstat (limited to 'meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l')
3 files changed, 6 insertions, 3 deletions
diff --git a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service index f8ac3189d..159b3cca6 100644 --- a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service +++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-gpio.service @@ -5,4 +5,5 @@ Description=Configure GPIOs for Host Power Control 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-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service index d8159a140..9b96ce7ca 100644 --- a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service +++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweroff.service @@ -7,7 +7,8 @@ Conflicts=obmc-chassis-power-on@0.target [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-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service index ee505c90d..69720c9aa 100644 --- a/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service +++ b/meta-openbmc-machines/meta-x86/meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/host-poweron.service @@ -7,7 +7,8 @@ Conflicts=obmc-chassis-poweroff@0.target [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 |