https-keyscript
https-keyscript copied to clipboard
setup step 4 (busybox sh /lib/cryptsetup/scripts/wget_or_ask) failing "sh: bad number"
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
Hmm. Complains but still works for me. Will investigate...
CRYPTTAB_TRIED is defined in /lib/cryptsetup/functions which isn't available when you execute the busybox command in a "non-initramfs" environment.