diff options
Diffstat (limited to 'meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0001-Added-reset-OneTime-override-properties.patch')
-rw-r--r-- | meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0001-Added-reset-OneTime-override-properties.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0001-Added-reset-OneTime-override-properties.patch b/meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0001-Added-reset-OneTime-override-properties.patch new file mode 100644 index 0000000000..f278b3cb60 --- /dev/null +++ b/meta-ibs/meta-common/recipes-phosphor/ipmi/phosphor-ipmi-host/0001-Added-reset-OneTime-override-properties.patch @@ -0,0 +1,41 @@ +From 94ac5b836deb08fc206e48c47840e2bef1840a9b Mon Sep 17 00:00:00 2001 +From: Nikita Kosenkov <NKosenkov@IBS.RU> +Date: Tue, 16 Aug 2022 20:50:51 +0300 +Subject: [PATCH] Added reset OneTime override properties + +--- + chassishandler.cpp | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/chassishandler.cpp b/chassishandler.cpp +index 737d3d2..7623b3d 100644 +--- a/chassishandler.cpp ++++ b/chassishandler.cpp +@@ -1942,6 +1942,16 @@ ipmi::RspType<ipmi::message::Payload> + uint1_t{validFlag}, uint2_t{}, uint4_t{bootOption}, + uint1_t{}, cmosClear, uint8_t{}, uint8_t{}, + uint8_t{}); ++ ++ if(oneTimeEnabled) ++ { ++ log<level::INFO>("ipmiChassisGetSysBootOptions: Reset OneTime override properties"); ++ ++ setBootOneTime(ctx, false); ++ setBootMode(ctx, Mode::Modes::Regular); ++ setBootSource(ctx, Source::Sources::Default); ++ } ++ + return ipmi::responseSuccess(std::move(response)); + } + catch (const InternalFailure& e) +@@ -1990,6 +2000,7 @@ ipmi::RspType<ipmi::message::Payload> + return ipmi::responseParmNotSupported(); + } + } ++ + return ipmi::responseUnspecifiedError(); + } + +-- +2.35.1 + |