From 10f9e569c52654ff54678a626a0f5dd14233716d Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 4 May 2021 10:40:23 +0200 Subject: [PATCH] fix(crypt): install all crypto modules in the generic initrd Just install all `=crypto` drivers in the generic initramfs, because who are we to decide which combinations are allowed in current and future `cryptsetup`. We only could install blacklist filter in the future, if there are modules, which are definetely not used and are huge in size. --- modules.d/90crypt/module-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index bef9151f85..4eb27ac5d7 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -30,7 +30,7 @@ installkernel() { # in case some of the crypto modules moved from compiled in # to module based, try to install those modules # best guess - [[ $hostonly ]] || [[ $mount_needs ]] && { + if [[ $hostonly ]] || [[ $mount_needs ]]; then # dmsetup returns s.th. like # cryptvol: 0 2064384 crypt aes-xts-plain64 :64:logon:cryptsetup:.... dmsetup table | while read -r name _ _ is_crypt cipher _; do @@ -47,7 +47,9 @@ installkernel() { hostonly='' instmods "${mods[@]/#/crypto-}" "crypto-$cipher" fi done - } + else + instmods "=crypto" + fi return 0 }