summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/clear-once
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-10-02 20:12:08 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-10-25 00:57:04 +0000
commit7d8f725534e385277fbbe514b7b0856c4ed89643 (patch)
tree2333d74de70983ac7a69f175922a8328ad09ce68 /meta-phosphor/common/recipes-phosphor/clear-once
parent21875f751272d7ffc41535735acef57fe7528a18 (diff)
downloadtalos-openbmc-7d8f725534e385277fbbe514b7b0856c4ed89643.tar.gz
talos-openbmc-7d8f725534e385277fbbe514b7b0856c4ed89643.zip
clear-once.service: Call fw_setenv twice for openbmconce
Support for u-boot redundant environment variables was added where u-boot alternates writing to each environment every time an variable is written. But initramfs doesn't know which environment is active so it always reads from the same one. Therefore need to twice set the environments that initramfs reads so that they're written to both environments and initramfs can read it. Resolves openbmc/openbmc#2292 Change-Id: Ief7fe504199ed9c7646056178bee2992df886e8d Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/clear-once')
-rw-r--r--meta-phosphor/common/recipes-phosphor/clear-once/clear-once/clear-once.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/clear-once/clear-once/clear-once.service b/meta-phosphor/common/recipes-phosphor/clear-once/clear-once/clear-once.service
index a7641e661..132d11d69 100644
--- a/meta-phosphor/common/recipes-phosphor/clear-once/clear-once/clear-once.service
+++ b/meta-phosphor/common/recipes-phosphor/clear-once/clear-once/clear-once.service
@@ -13,3 +13,4 @@ TimeoutStartSec=60
Restart=no
ExecStart=/sbin/fw_setenv openbmconce
+ExecStart=/sbin/fw_setenv openbmconce
OpenPOWER on IntegriCloud