Justfile: add logic to unlock remote drive
This commit is contained in:
parent
9691326c02
commit
cb3956c55a
1 changed files with 5 additions and 2 deletions
7
Justfile
7
Justfile
|
@ -120,8 +120,11 @@ verify-vnc sshserver attempts="10":
|
|||
for i in `seq 1 {{attempts}}`; do
|
||||
if send_and_compare; then
|
||||
echo Verification succeeded at attempt $i. Unlocking remote drive...
|
||||
# TODO: unlock drive
|
||||
exit 0
|
||||
if $GETPWD | head -n1 | ssh -4 ${SSHOPTS} root@{{sshserver}} "cryptsetup-askpass && exit 0" 1>/dev/null 2>&1 > /dev/null; then
|
||||
echo Unlock successful!
|
||||
exit 0
|
||||
fi
|
||||
echo Unlock failed...
|
||||
fi
|
||||
done
|
||||
echo Verification failed {{attempts}} times. Giving up...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue