diff --git a/initrd/etc/functions b/initrd/etc/functions index a5935f61..03559d5a 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -25,14 +25,20 @@ recovery() { if [ "$CONFIG_TPM" = y ]; then tpm extend -ix 4 -ic recovery fi - echo >&2 "!!!!! Starting recovery shell" - sleep 1 - if [ -x /bin/setsid ]; then - exec /bin/setsid -c /bin/ash - else - exec /bin/ash - fi + while [ true ] + do + echo >&2 "!!!!! Starting recovery shell" + sleep 1 + + if [ -x /bin/setsid ]; then + /bin/setsid -c /bin/ash + else + /bin/ash + fi + # clear screen + printf "\033c" + done } pause_recovery() {