Touch /tmp/config when entering recovery mode

This commit is contained in:
Kyle Rankin 2019-02-08 10:25:12 -08:00
parent 6ebabc5b94
commit 181c621c84
No known key found for this signature in database
GPG Key ID: 91AB3245B1D14ABD

View File

@ -17,6 +17,10 @@ recovery() {
# but recreate the directory so that new tools can use it.
rm -rf /tmp/secret
mkdir -p /tmp/secret
# ensure /tmp/config exists for recovery scripts that depend on it
touch /tmp/config
if [ "$CONFIG_TPM" = y ]; then
tpm extend -ix 4 -ic recovery
fi