dracut: cryptsetup unlock whirlpool in initrd

This commit is contained in:
Đoàn Trần Công Danh 2023-09-12 10:51:30 +07:00
parent f399db3506
commit 7b8f2e8301
2 changed files with 25 additions and 1 deletions

View File

@ -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?= <johannbg@gmail.com>
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
}

View File

@ -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"