#
b33beeb0 |
| 23-Oct-2024 |
Hieu Huynh <hieuh@os.amperecomputing.com> |
meta-ampere: fix service warning on BMC boot up
When BMC boots up, the warning of ampere-bmc-reboot-host-check@.service shows ``` systemd[1]: /usr/lib/systemd/system/ampere-bmc-reboot-host-check@.se
meta-ampere: fix service warning on BMC boot up
When BMC boots up, the warning of ampere-bmc-reboot-host-check@.service shows ``` systemd[1]: /usr/lib/systemd/system/ampere-bmc-reboot-host-check@.service:13: \ Ignoring unknown escape sequences: "if [ $(busctl get-property `mapper get-service \ /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.Host CurrentHostState | grep -i '\.Running' \ | wc -l) != 0 ]; then exit 0; fi" ``` The issue come from the '\.Running'. Per systemd.syntax [1] "any backslashes should be doubled".
[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.syntax.html#Quoting
Tested: 1. Tested the block command, it works. 2. When BMC boots up, don't see the warning of ampere-bmc-reboot-host-check@.service service.
Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I0e9435db527a2454e86e50c159d50e50c347d16e
show more ...
|
#
6c188d6d |
| 28-Aug-2022 |
Thu Nguyen <thu@os.amperecomputing.com> |
meta-ampere: support ampere power/host already on targets
There are no targets to identity the already on of power state and the already running of host state. This commit adds those targets. The ta
meta-ampere: support ampere power/host already on targets
There are no targets to identity the already on of power state and the already running of host state. This commit adds those targets. The targets will be the check points to start ampere services such as drivers binder, hang detection... obmc-power-already-on@.target will be always activated when chassis-power-control is asserted. It will be deactivated before deasserting chassis-power-control. obmc-host-already-on@.target will be activated when the host%i-ready is triggered. The target will be deactivated before turning off/reseting the host.
Tested: 1. The targets should be activated/deactivated as designing.
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I09a8b94d8043f31f7cee83b29765f7e2c7a5c35a
show more ...
|