Harald Hoyer 308914
From 1ec7b694b55c70d06f262a96c320709b70d20bcb Mon Sep 17 00:00:00 2001
Harald Hoyer 308914
From: =?UTF-8?q?Tomasz=20Pawe=C5=82=20Gajc?= <tpgxyz@gmail.com>
Harald Hoyer 308914
Date: Mon, 11 May 2020 14:49:06 +0200
Harald Hoyer 308914
Subject: [PATCH] install dependant libs too
Harald Hoyer 308914
Harald Hoyer 308914
By default rng-tools are compiled with pkcs11 support.
Harald Hoyer 308914
Make sure opensc-pkcs11.so library is installed inside initramfs to prevent error on boot
Harald Hoyer 308914
---
Harald Hoyer 308914
 modules.d/06rngd/module-setup.sh | 2 ++
Harald Hoyer 308914
 1 file changed, 2 insertions(+)
Harald Hoyer 308914
Harald Hoyer 308914
diff --git a/modules.d/06rngd/module-setup.sh b/modules.d/06rngd/module-setup.sh
Harald Hoyer 308914
index 354bd0bb..f07a0cb9 100644
Harald Hoyer 308914
--- a/modules.d/06rngd/module-setup.sh
Harald Hoyer 308914
+++ b/modules.d/06rngd/module-setup.sh
Harald Hoyer 308914
@@ -33,6 +33,8 @@ check() {
Harald Hoyer 308914
 install() {
Harald Hoyer 308914
     inst rngd
Harald Hoyer 308914
     inst_simple "${moddir}/rngd.service" "${systemdsystemunitdir}/rngd.service"
Harald Hoyer 308914
+    # make sure dependant libs are installed too
Harald Hoyer 308914
+    inst_libdir_file opensc-pkcs11.so
Harald Hoyer 308914
 
Harald Hoyer 308914
     systemctl -q --root "$initdir" add-wants sysinit.target rngd.service
Harald Hoyer 308914
 }
Harald Hoyer 308914