Compare commits

..

1 Commits
v1.0 ... master

Author SHA1 Message Date
Travis Burtrum f7511ff3c7 First commit with ssh support 2016-12-20 21:28:48 -05:00
1 changed files with 10 additions and 4 deletions

View File

@ -97,15 +97,21 @@ EOF
if [ ! -f ${cpassfile} ]; then
query_password "${cryptname}" "${resolved}" "${cpassfile}"
[ -f /.done ] && break
if [ -f /.done ]; then
break
fi
fi
#loop until we get a real password
while ! eval cryptsetup --key-file ${cpassfile} open --type luks ${resolved} ${cryptname} ${cryptargs} ${CSQUIET}; do
query_password "${cryptname}" "${resolved}" "${cpassfile}"
[ -f /.done ] && break
if [ -f /.done ]; then
break
fi
done
[ -f /.done ] && break
if [ -f /.done ]; then
break
fi
fi
if [ -e "/dev/mapper/${cryptname}" ]; then
if [ ${DEPRECATED_CRYPT} -eq 1 ]; then
@ -163,7 +169,7 @@ EOF
done
rm -f ${cpassfile}
touch /.done
killall query_password >/dev/null 2>&1
killall query_password
}
# vim: set ft=sh ts=4 sw=4 et: