Index: encrypt_hook =================================================================== --- encrypt_hook (revision 155993) +++ encrypt_hook (working copy) @@ -101,7 +101,7 @@ elif [ -n "${crypto}" ]; then [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated msg "Non-LUKS encrypted device found..." - if [ $# -ne 5 ]; then + if echo "$crypto" | awk -F: '{ exit(NF == 5) }'; then err "Verify parameter format: crypto=hash:cipher:keysize:offset:skip" err "Non-LUKS decryption not attempted..." return 1