commit | 586cfd1ff23a2db422fa2d2d9b79755af4e0f460 | [log] [tgz] |
---|---|---|
author | Konda Reddy Kachana <kkachana@google.com> | Fri May 31 19:08:37 2024 +0000 |
committer | Konda Reddy Kachana <kkachana@google.com> | Mon Jun 03 23:36:12 2024 +0000 |
tree | 5847a1f1d5876d42fde85d236c1e10bb8fa9d678 | |
parent | 4d829afa54be3c30b02fa3cc2d4d2d66961d29c8 [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>