diff options
| author | Gunnar Mills <gmills@us.ibm.com> | 2017-12-07 10:41:46 -0600 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2017-12-12 18:57:03 -0600 |
| commit | 8eeaed71527102ee855d0ce244ed50f8bc0bbfa1 (patch) | |
| tree | cee7041e301fdc3a3ea4d6a43ad75ba4507b6798 /code-update/ubi-code-update.md | |
| parent | cbb67027703f39657b95f85f39485b093bf33f1c (diff) | |
| download | openbmc-docs-8eeaed71527102ee855d0ce244ed50f8bc0bbfa1.tar.gz openbmc-docs-8eeaed71527102ee855d0ce244ed50f8bc0bbfa1.zip | |
Add information about factory reset
Change-Id: If50645398370d66da0f81f1934e8491999f23bc9
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'code-update/ubi-code-update.md')
| -rw-r--r-- | code-update/ubi-code-update.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/code-update/ubi-code-update.md b/code-update/ubi-code-update.md index 5054d6a..45ee485 100644 --- a/code-update/ubi-code-update.md +++ b/code-update/ubi-code-update.md @@ -314,6 +314,25 @@ reboot More information on field mode can be found here: https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Control/FieldMode.interface.yaml +### Software Factory Reset + +Software factory reset resets the BMC and host firmware to its factory state +by clearing out any read/write data. +To software factory reset run the following command and then reboot the BMC: + +``` +curl -b cjar -k -H 'Content-Type: application/json' -X POST -d '{"data":[]}' \ + https://${bmc}/xyz/openbmc_project/software/action/Reset + +``` + +The factory reset on the BMC side will clear `/var`, `/home`, and `/etc`. +On the host side, the factory reset will clear the read/write volume for each +host image on the system, clear the shared preserve host volume, pnor-prsv, and +clear any host patches located in `/usr/local/share/pnor/`. + +The factory reset interface can be found here: +https://github.com/openbmc/phosphor-dbus-interfaces/blob/02b39246d45ea029a1652a49cc20eab7723dd63b/xyz/openbmc_project/Common/FactoryReset.interface.yaml ### Implementation |

