From 5e83f0f2489369788f3382e7bf74a9cea2d2a961 Mon Sep 17 00:00:00 2001 From: Alexander Filippov Date: Tue, 7 Apr 2020 18:30:38 +0300 Subject: 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 Signed-off-by: Andrew Geissler --- .../recipes-phosphor/state/phosphor-state-manager/resetreason.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf (limited to 'meta-yadro/meta-nicole/recipes-phosphor/state/phosphor-state-manager/resetreason.conf') 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 -- cgit v1.2.3