From 7b8f2e83014a3cdb30f62c46ab1b30aa2fa4fc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 12 Sep 2023 10:51:30 +0700 Subject: [PATCH] dracut: cryptsetup unlock whirlpool in initrd --- srcpkgs/dracut/patches/crypt-openssl-3.patch | 24 ++++++++++++++++++++ srcpkgs/dracut/template | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dracut/patches/crypt-openssl-3.patch diff --git a/srcpkgs/dracut/patches/crypt-openssl-3.patch b/srcpkgs/dracut/patches/crypt-openssl-3.patch new file mode 100644 index 00000000000..39fd3dd3c65 --- /dev/null +++ b/srcpkgs/dracut/patches/crypt-openssl-3.patch @@ -0,0 +1,24 @@ +From 5996f6b5d9b0bb957b4bb02c49c95a057761cba5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= +Date: Mon, 13 Feb 2023 20:22:56 +0000 +Subject: [PATCH] fix(crypt): add missing libraries + +Add missing libraries, closes #2137 +--- + modules.d/90crypt/module-setup.sh | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- a/modules.d/90crypt/module-setup.sh ++++ b/modules.d/90crypt/module-setup.sh +@@ -176,5 +176,11 @@ install() { + systemd-ask-password systemd-tty-ask-password-agent + fi + ++ # Install required libraries. ++ _arch=${DRACUT_ARCH:-$(uname -m)} ++ inst_libdir_file \ ++ {"tls/$_arch/",tls/,"$_arch/",}"/ossl-modules/fips.so" \ ++ {"tls/$_arch/",tls/,"$_arch/",}"/ossl-modules/legacy.so" ++ + dracut_need_initqueue + } diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index 436a6e29b15..6fad8af51d5 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -1,7 +1,7 @@ # Template file for 'dracut' pkgname=dracut version=059 -revision=3 +revision=4 build_style=configure configure_args="--prefix=/usr --sysconfdir=/etc" conf_files="/etc/dracut.conf"