From cb8d76056f6912fcd099b88014971e98592ac0f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 07:02:04 +0200 Subject: Using decrypt_keyctl by default if no keyscript in /etc/crypttab to cache passphrase for multiple filesystems. Signed-off-by: Daniel Baumann --- debian/functions | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/functions') diff --git a/debian/functions b/debian/functions index 917abad..3409787 100644 --- a/debian/functions +++ b/debian/functions @@ -113,6 +113,11 @@ crypttab_parse_options() { done IFS=" " + # use decrypt_keyctl by default if no keyscript in /etc/crypttab + if [ -z "$CRYPTTAB_OPTION_keyscript" ]; then + CRYPTTAB_OPTION_keyscript="/lib/cryptsetup/scripts/decrypt_keyctl" + fi + if ! _get_crypt_type; then # set CRYPTTAB_TYPE to the type of crypt device CRYPTTAB_TYPE="plain" if [ "$quiet" = "n" ]; then -- cgit v1.2.3