Enable fm-api service as part of bootstrap
fm-api service fails to start after the install stage because the
files that it needs aren't there yet.
So we disable it during install and enable it during bootstrap.
Test plan
PASS: * Deploy a system until the bootstrap stage.
* Check that fm-api.service is in state enabled.
Partial-bug: 1999267
Signed-off-by: Agustin Carranza <agustin.carranza@windriver.com>
Change-Id: Ied6e3ba48a351eef8f4e264e8b92bbabc4f7a8b8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
#
|
||||
# Copyright (c) 2019 Wind River Systems, Inc.
|
||||
# Copyright (c) 2019-2022 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
@@ -42,6 +42,11 @@
|
||||
- /etc/init.d/fm-api restart
|
||||
- /etc/init.d/fminit start
|
||||
|
||||
- name: Enable FM API
|
||||
systemd:
|
||||
name: fm-api
|
||||
enabled: yes
|
||||
|
||||
- name: Bring up Maintenance Agent
|
||||
command: /usr/lib/ocf/resource.d/platform/mtcAgent start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user