diff options
Diffstat (limited to 'intel-pfr-manager/service/src/pfr_mgr.cpp')
-rw-r--r-- | intel-pfr-manager/service/src/pfr_mgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intel-pfr-manager/service/src/pfr_mgr.cpp b/intel-pfr-manager/service/src/pfr_mgr.cpp index d5f1f59..318abe2 100644 --- a/intel-pfr-manager/service/src/pfr_mgr.cpp +++ b/intel-pfr-manager/service/src/pfr_mgr.cpp @@ -60,7 +60,10 @@ PfrVersion::PfrVersion(sdbusplus::asio::object_server &srv_, * active, so we should set "activation" to Active and * "RequestedActivation" to None. */ std::string activation = - "xyz.openbmc_project.Software.Activation.Activations.Active"; + (imgType == ImageType::bmcRecovery || + imgType == ImageType::biosRecovery) + ? "xyz.openbmc_project.Software.Activation.Activations.StandbySpare" + : "xyz.openbmc_project.Software.Activation.Activations.Active"; std::string reqActNone = "xyz.openbmc_project.Software.Activation.RequestedActivations.None"; auto activationIface = server.add_interface( |