|
Harald Hoyer |
308914 |
From 586a56c2877ae8c0b365c3a6c69cd4ff8b27bf0c Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
308914 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
308914 |
Date: Fri, 24 Apr 2020 11:05:49 +0200
|
|
Harald Hoyer |
308914 |
Subject: [PATCH] Install crypto modules in 90kernel-modules
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
We don't want to play catch up with hash and encryption algorithms.
|
|
Harald Hoyer |
308914 |
To be safe, just use the hammer and include all crypto.
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
Fixes https://github.com/dracutdevs/dracut/issues/802
|
|
Harald Hoyer |
308914 |
---
|
|
Harald Hoyer |
308914 |
modules.d/90btrfs/module-setup.sh | 2 --
|
|
Harald Hoyer |
308914 |
modules.d/90crypt/module-setup.sh | 6 +-----
|
|
Harald Hoyer |
308914 |
modules.d/90kernel-modules/module-setup.sh | 9 +++++++++
|
|
Harald Hoyer |
308914 |
3 files changed, 10 insertions(+), 7 deletions(-)
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
308914 |
index 66a254e1..79f89a50 100755
|
|
Harald Hoyer |
308914 |
--- a/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
308914 |
+++ b/modules.d/90btrfs/module-setup.sh
|
|
Harald Hoyer |
308914 |
@@ -26,8 +26,6 @@ depends() {
|
|
Harald Hoyer |
308914 |
# called by dracut
|
|
Harald Hoyer |
308914 |
installkernel() {
|
|
Harald Hoyer |
308914 |
instmods btrfs
|
|
Harald Hoyer |
308914 |
- # Make sure btfs can use fast crc32c implementations where available (bsc#1011554)
|
|
Harald Hoyer |
308914 |
- instmods crc32c-intel
|
|
Harald Hoyer |
308914 |
}
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
# called by dracut
|
|
Harald Hoyer |
308914 |
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
308914 |
index 3ee4c545..a9dda734 100755
|
|
Harald Hoyer |
308914 |
--- a/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
308914 |
+++ b/modules.d/90crypt/module-setup.sh
|
|
Harald Hoyer |
308914 |
@@ -25,11 +25,7 @@ depends() {
|
|
Harald Hoyer |
308914 |
# called by dracut
|
|
Harald Hoyer |
308914 |
installkernel() {
|
|
Harald Hoyer |
308914 |
hostonly="" instmods drbg
|
|
Harald Hoyer |
308914 |
- arch=$(uname -m)
|
|
Harald Hoyer |
308914 |
- [[ $arch == x86_64 ]] && arch=x86
|
|
Harald Hoyer |
308914 |
- [[ $arch == s390x ]] && arch=s390
|
|
Harald Hoyer |
308914 |
- [[ $arch == aarch64 ]] && arch=arm64
|
|
Harald Hoyer |
308914 |
- instmods dm_crypt =crypto =drivers/crypto =arch/$arch/crypto
|
|
Harald Hoyer |
308914 |
+ instmods dm_crypt
|
|
Harald Hoyer |
308914 |
}
|
|
Harald Hoyer |
308914 |
|
|
Harald Hoyer |
308914 |
# called by dracut
|
|
Harald Hoyer |
308914 |
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
308914 |
index bc3810cc..28d291eb 100755
|
|
Harald Hoyer |
308914 |
--- a/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
308914 |
+++ b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
308914 |
@@ -104,6 +104,15 @@ installkernel() {
|
|
Harald Hoyer |
308914 |
elif [[ "${host_fs_types[*]}" ]]; then
|
|
Harald Hoyer |
308914 |
hostonly='' instmods "${host_fs_types[@]}"
|
|
Harald Hoyer |
308914 |
fi
|
|
Harald Hoyer |
308914 |
+
|
|
Harald Hoyer |
308914 |
+ arch=${DRACUT_ARCH:-$(uname -m)}
|
|
Harald Hoyer |
308914 |
+
|
|
Harald Hoyer |
308914 |
+ # We don't want to play catch up with hash and encryption algorithms.
|
|
Harald Hoyer |
308914 |
+ # To be safe, just use the hammer and include all crypto.
|
|
Harald Hoyer |
308914 |
+ [[ $arch == x86_64 ]] && arch=x86
|
|
Harald Hoyer |
308914 |
+ [[ $arch == s390x ]] && arch=s390
|
|
Harald Hoyer |
308914 |
+ [[ $arch == aarch64 ]] && arch=arm64
|
|
Harald Hoyer |
308914 |
+ instmods "=crypto" "=arch/$arch/crypto" "=drivers/crypto"
|
|
Harald Hoyer |
308914 |
fi
|
|
Harald Hoyer |
308914 |
:
|
|
Harald Hoyer |
308914 |
}
|
|
Harald Hoyer |
308914 |
|