From 181c621c843e7c0c3f6ebcf91d127fb77cb60639 Mon Sep 17 00:00:00 2001 From: Kyle Rankin Date: Fri, 8 Feb 2019 10:25:12 -0800 Subject: [PATCH] Touch /tmp/config when entering recovery mode --- initrd/etc/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/initrd/etc/functions b/initrd/etc/functions index 1f7896ac..8913870e 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -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