Skip to content

Commit

Permalink
fix(crypt): install all crypto modules in the generic initrd
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
haraldh committed May 4, 2021
1 parent 33e27fa commit 10f9e56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules.d/90crypt/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,7 +47,9 @@ installkernel() {
hostonly='' instmods "${mods[@]/#/crypto-}" "crypto-$cipher"
fi
done
}
else
instmods "=crypto"
fi
return 0
}

Expand Down

0 comments on commit 10f9e56

Please sign in to comment.