diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-02-09 21:45:46 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-02-10 06:26:13 +0300 |
commit | 4535b70af3616feb3b4bec04dff8c522b9dc3937 (patch) | |
tree | 2761c0c1aa8b8586ac3ee614b35324ededf70761 /meta-facebook | |
parent | d91b4b3bf903a59c9f7cd6edc8902afebcf29a5c (diff) | |
download | openbmc-4535b70af3616feb3b4bec04dff8c522b9dc3937.tar.xz |
meta-phosphor: static-norootfs-init: support factory-reset
Add support to check the uboot environment for 'factory-reset' as
programmed by phosphor-bmc-code-mgmt's FactoryReset interface.
Tested:
Ran the following and observed the file missing after reboot:
```
touch /var/DELETE_THIS_FILE
busctl call xyz.openbmc_project.Software.BMC.Updater \
/xyz/openbmc_project/software \
xyz.openbmc_project.Common.FactoryReset Reset
reboot
```
During the reboot observed the following message, along with ubiformat
messages:
```
Formatting persistent volume:
factory-reset
```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7c0d73cedc6414a590a0f99b68c843c88a7aded7
Diffstat (limited to 'meta-facebook')
0 files changed, 0 insertions, 0 deletions