Skip to content

Commit 10f9e56

Browse files
committed
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.
1 parent 33e27fa commit 10f9e56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules.d/90crypt/module-setup.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ installkernel() {
3030
# in case some of the crypto modules moved from compiled in
3131
# to module based, try to install those modules
3232
# best guess
33-
[[ $hostonly ]] || [[ $mount_needs ]] && {
33+
if [[ $hostonly ]] || [[ $mount_needs ]]; then
3434
# dmsetup returns s.th. like
3535
# cryptvol: 0 2064384 crypt aes-xts-plain64 :64:logon:cryptsetup:....
3636
dmsetup table | while read -r name _ _ is_crypt cipher _; do
@@ -47,7 +47,9 @@ installkernel() {
4747
hostonly='' instmods "${mods[@]/#/crypto-}" "crypto-$cipher"
4848
fi
4949
done
50-
}
50+
else
51+
instmods "=crypto"
52+
fi
5153
return 0
5254
}
5355

0 commit comments

Comments
 (0)