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>
1 file changed
tree: 6f66315c29acc80c43eb00f5b0a002f1b62ccfaf
  1. aspeed-layer/
  2. classes/
  3. common/
  4. conf/
  5. nuvoton-layer/
  6. COPYING.apache-2.0
  7. COPYING.MIT
  8. LICENSE
  9. MAINTAINERS
  10. README.md
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.