https-keyscript icon indicating copy to clipboard operation
https-keyscript copied to clipboard

setup step 4 (busybox sh /lib/cryptsetup/scripts/wget_or_ask) failing "sh: bad number"

Open yeupou opened this issue 5 years ago • 2 comments

sh expect $CRYPTTAB_TRIED (if [ "$CRYPTTAB_TRIED" -gt 0 ]; then) to be set so the following fails:

busybox sh /lib/cryptsetup/scripts/wget_or_ask "somepassphrase:https://example.org/encrypted_keyfile" > unencrypted_keyfile

the following works (but without passing by busybox): CRYPTTAB_TRIED=0 /lib/cryptsetup/scripts/wget_or_ask "somepassphrase:https://example.org/encrypted_keyfile" > unencrypted_keyfile

yeupou avatar Mar 18 '20 14:03 yeupou

Hmm. Complains but still works for me. Will investigate...

stupidpupil avatar Mar 30 '20 16:03 stupidpupil

CRYPTTAB_TRIED is defined in /lib/cryptsetup/functions which isn't available when you execute the busybox command in a "non-initramfs" environment.

brknkfr avatar Nov 12 '20 10:11 brknkfr