summaryrefslogtreecommitdiff
path: root/meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf
diff options
context:
space:
mode:
authorAlexander Filippov <a.filippov@yadro.com>2020-04-07 18:30:38 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-04-21 00:16:15 +0300
commit5e83f0f2489369788f3382e7bf74a9cea2d2a961 (patch)
treebfb249c540bdcc8fb451f2abec665addfcaf1021 /meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf
parent56c6aa01a12fa1d660a708537ba4f8b6416c50a1 (diff)
downloadopenbmc-5e83f0f2489369788f3382e7bf74a9cea2d2a961.tar.xz
nicole: Apply pwr restore policy on cold boot only
Makes the phosphor-discover-system-state running only on cold BMC boot. As a result, on the warm BMC reboot the host's power restore policy will not be applied. Tested: - on the warm BMC reboot the host power state is not changed. - on the cold BMC boot (power cycle) the host power state depends on the power restore policy. (From meta-yadro rev: ff3f2e23697817d4e14891ce6753509b5fb22e6b) Change-Id: I9265011d078e732d840eaa2572bf5220fc6951d5 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf')
-rw-r--r--meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf b/meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf
new file mode 100644
index 000000000..828d98b8e
--- /dev/null
+++ b/meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf
@@ -0,0 +1,2 @@
+[Unit]
+ConditionKernelCommandLine=resetreason=power