diff --git a/config/includes.chroot/usr/lib/live/boot/0024-ciss-crypt-squash b/config/includes.chroot/usr/lib/live/boot/0024-ciss-crypt-squash index b061bc5..5fed337 100644 --- a/config/includes.chroot/usr/lib/live/boot/0024-ciss-crypt-squash +++ b/config/includes.chroot/usr/lib/live/boot/0024-ciss-crypt-squash @@ -235,7 +235,12 @@ chmod 0600 /lib/cryptsetup/passfifo 2>/dev/null || true printf "\e[93m[INFO] Trying to unlock via cryptsetup ...\n\e[0m" >/dev/console 2>/dev/null || true - printf '%s\n' "${PASS}" | cryptsetup open --type luks --readonly "${LOOP}" "${CDLB_MAPPER_NAME}" --key-file - 2>/dev/console + KEYLEN=${#PASS} + + printf '%s' "${PASS}" | cryptsetup open --tries 1 \ + --type luks \ + --keyfile-size="${KEYLEN}" \ + --readonly "${LOOP}" "${CDLB_MAPPER_NAME}" --key-file - 2>/dev/console if [ -b "${CDLB_MAPPER_DEV}" ]; then