gui-init: add OEM Factory Reset to options menu

Add an OEM Factory Reset menu option, which performs an
unattended reset and configuration of the device's TPM,
GPG security token, and boot device / boot selection.

Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
Matt DeVillier 2019-08-16 09:33:17 -05:00
parent f067d9af23
commit d8bcc7b841
No known key found for this signature in database
GPG Key ID: 2BBB776A35B978FD

View File

@ -195,6 +195,7 @@ while true; do
'c' ' Change configuration settings -->' \
'f' ' Flash/Update the BIOS -->' \
'G' ' GPG Options -->' \
'F' ' OEM Factory Reset -->' \
'x' ' Exit to recovery shell' \
'r' ' <-- Return to main menu' \
2>/tmp/whiptail || recovery "GUI menu failed"
@ -335,6 +336,11 @@ while true; do
continue
fi
if [ "$totp_confirm" = "F" ]; then
oem-factory-reset
continue
fi
if [ "$totp_confirm" = "P" ]; then
poweroff
fi