diff options
author | Lei YU <mine260309@gmail.com> | 2018-07-20 15:11:27 +0800 |
---|---|---|
committer | Lei YU <mine260309@gmail.com> | 2018-08-20 06:28:24 +0000 |
commit | a08c9960fe35080ef918321baf745105886dae92 (patch) | |
tree | 2bb254a166dea196c0427f598ea0026578b2f9e1 /meta-phosphor/common/recipes-phosphor/watchdog | |
parent | 6f2e372ddf5272905c21921d1a82325d55537ac0 (diff) | |
download | talos-openbmc-a08c9960fe35080ef918321baf745105886dae92.tar.gz talos-openbmc-a08c9960fe35080ef918321baf745105886dae92.zip |
obmc-init: Add factory reset support
In obmc-init.sh, there is "clean-rwfs-filesystem" that clean the rwfs
during boot, but it backs up the files in whitelist, so it is not a
*real* factory reset.
Add a new "factory-reset" option, and when it exists, erase the rwfs
without restoring files in whitelist.
Tested: Set openbmconce=factory-reset in u-boot env, and verify the rwfs
is erased during boot without restore;
Set openbmconce=clean-rwfs-filesystem in u-boot env, and verify
that rwfs is erased with whitelist restored.
Change-Id: Ifdc76da46fe273e9c942f30444173e51f8106fcc
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/watchdog')
0 files changed, 0 insertions, 0 deletions