diff options
author | Michael Tritz <mtritz@us.ibm.com> | 2017-10-24 17:38:09 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-10-26 01:02:04 +0000 |
commit | ff0b421d3978666ad3c292e107055aa9a42327c9 (patch) | |
tree | 8bcd2e06c4f5657f9985aa91bc633178fecaaf56 | |
parent | d377ba1f91a32c83c6dc1687ac9fc767587f4c7a (diff) | |
download | phosphor-bmc-code-mgmt-ff0b421d3978666ad3c292e107055aa9a42327c9.tar.gz phosphor-bmc-code-mgmt-ff0b421d3978666ad3c292e107055aa9a42327c9.zip |
Fix for field mode not working after reboot
This commit fixes a problem with field mode - namely, that the file
location for environment variables was moved. The new path is now
referenced when checking field mode status after a reboot.
Resolves openbmc/openbmc#2428
Change-Id: I68b5d2a3ce6e2aa0b2c3825bc56e02d6bf581e9d
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
-rw-r--r-- | item_updater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/item_updater.cpp b/item_updater.cpp index 2c23b93..2282c28 100644 --- a/item_updater.cpp +++ b/item_updater.cpp @@ -470,7 +470,7 @@ bool ItemUpdater::fieldModeEnabled(bool value) void ItemUpdater::restoreFieldModeStatus() { - std::ifstream input("/run/fw_env"); + std::ifstream input("/dev/mtd/u-boot-env"); std::string envVar; std::getline(input, envVar); |