Ensure that cryptsetup is installed before attempting to recover from a keydrive

This commit is contained in:
Bob Mottram 2016-10-29 19:41:21 +01:00
parent 2321588fb2
commit 95b0b9c8af
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ function interactive_key_recovery {
1) return;;
255) return;;
esac
apt-get -yq install cryptsetup
${PROJECT_NAME}-recoverkey -u $MY_USERNAME
if [ -d /home/$MY_USERNAME/.gnupg ]; then
cp -rf /home/$MY_USERNAME/.gnupg /root