commit | db7eb588c9770c4b7638dcc8a029d66af16b652c | [log] [tgz] |
---|---|---|
author | Konda Reddy Kachana <kkachana@google.com> | Fri May 31 19:08:37 2024 +0000 |
committer | Anthony <anthonyhkf@google.com> | Tue Jun 04 02:22:31 2024 +0000 |
tree | 2a2cd707f3482a13556c10b0f42af1ee7dfdf10e | |
parent | 80ef106af130e9ff227c991d812e4c608b069892 [diff] |
user_mgmt: Recover corrupted nv files For unknown reasons the nv file size become to 0. To not affect the service, add this condition: If the file is 0 in size, delete the file and returns EIO. Resolves openbmc/phosphor-host-ipmid#185 Tested: Step1: Manually create an empty size file $ rm /var/lib/ipmi/channel_access_nv.json $ touch /var/lib/ipmi/channel_access_nv.json Step2: Restart ipmid and confirm the recovery was successful $ systemctl restart phosphor-ipmi-host.service Fusion-Link: https://fusion2.corp.google.com/3ee7154b-5d58-3c69-b1fc-371aa9705613 https://fusion2.corp.google.com/77bcd09c-0dff-3636-878d-cb24f80d94db Google-Bug-Id: 343233449 Change-Id: I710dd7c588ed811641266bf8178fb85610bd1609 Signed-off-by: Konda Reddy Kachana <kkachana@google.com> (cherry picked from commit 46c5c3ac63acf5a69c2058665fc773902a3dfb64)