Skip to content
Commit a08c9960 authored by Lei YU's avatar Lei YU
Browse files

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: default avatarLei YU <mine260309@gmail.com>
parent 6f2e372d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment