LUKS root: Fix key file check

Check for null instead of empty string
This commit is contained in:
Rickard Nilsson 2012-08-02 11:39:31 +02:00
parent 0958b224ac
commit a6039e1be2

View File

@ -19,7 +19,7 @@ let
echo "ok" echo "ok"
fi fi
${optionalString (keyFile != "") '' ${optionalString (keyFile != null) ''
if ! test -e ${keyFile}; then if ! test -e ${keyFile}; then
echo -n "waiting 10 seconds for key file ${keyFile} to appear..." echo -n "waiting 10 seconds for key file ${keyFile} to appear..."
for try in $(seq 10); do for try in $(seq 10); do