Skip to content

Commit

Permalink
reset $boot_option between loops
Browse files Browse the repository at this point in the history
  • Loading branch information
osresearch committed Apr 2, 2017
1 parent 93a0d7e commit d06ba0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if [ -z "$CONFIG_TIMEOUT" ]; then
fi

while true; do
boot_option=

# Verify the user's TPM secret
echo "TPM TOTP:"
if ! unsealtotp.sh ; then
Expand All @@ -37,7 +39,6 @@ while true; do
fi

# Secret decrypted ok, so prompt for a next step

read \
-t "$CONFIG_TIMEOUT" \
-p "Enter for normal boot or 'r' for recovery shell: " \
Expand Down

0 comments on commit d06ba0a

Please sign in to comment.