Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user_mgmt: Recover corrupted nv files (#17)
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 throw the exception. Related Issue: openbmc/phosphor-host-ipmid#185 Tested: Make an empty size file, restart ipmid and confirm the recovery was successful. $ rm /var/lib/ipmi/channel_access_nv.json $ touch /var/lib/ipmi/channel_access_nv.json $ systemctl restart phosphor-ipmi-host.service Signed-off-by: LuluTHSu <[email protected]> Signed-off-by: LuluTHSu <[email protected]>
- Loading branch information