]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(90kernel-modules): install generic crypto modules with hostonly unset
authorOndrej Mosnacek <omosnace@redhat.com>
Fri, 4 Dec 2020 16:21:05 +0000 (17:21 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 21 Jan 2021 11:20:22 +0000 (12:20 +0100)
Otherwise e.g. the xts(aes) implementation provided by the vmx_crypto
module (which does usually get included on ppc64le) fails to initialize
when xts is built as a module (CONFIG_CRYPTO_XTS=m), because it can't
instantiate the fallback generic xts(aes) implementation (needs the
generic xts module).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
modules.d/90kernel-modules/module-setup.sh

index 49609855e6b6a22c240c603f8422ab1c48806665..cab81ffaa7774e16c49cabec3b2e521fbcfa7d55 100755 (executable)
@@ -131,7 +131,8 @@ installkernel() {
         [[ $arch == x86_64 ]] && arch=x86
         [[ $arch == s390x ]] && arch=s390
         [[ $arch == aarch64 ]] && arch=arm64
-        instmods "=crypto" "=arch/$arch/crypto" "=drivers/crypto"
+        hostonly='' instmods "=crypto"
+        instmods "=arch/$arch/crypto" "=drivers/crypto"
     fi
     :
 }