Ensure that cryptsetup is installed before attempting to recover from a keydrive
This commit is contained in:
parent
2321588fb2
commit
95b0b9c8af
|
@ -235,6 +235,7 @@ function interactive_key_recovery {
|
||||||
1) return;;
|
1) return;;
|
||||||
255) return;;
|
255) return;;
|
||||||
esac
|
esac
|
||||||
|
apt-get -yq install cryptsetup
|
||||||
${PROJECT_NAME}-recoverkey -u $MY_USERNAME
|
${PROJECT_NAME}-recoverkey -u $MY_USERNAME
|
||||||
if [ -d /home/$MY_USERNAME/.gnupg ]; then
|
if [ -d /home/$MY_USERNAME/.gnupg ]; then
|
||||||
cp -rf /home/$MY_USERNAME/.gnupg /root
|
cp -rf /home/$MY_USERNAME/.gnupg /root
|
||||||
|
|
Loading…
Reference in New Issue