]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
install dependant libs too
authorTomasz Paweł Gajc <tpgxyz@gmail.com>
Mon, 11 May 2020 12:49:06 +0000 (14:49 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 20 May 2020 13:45:38 +0000 (15:45 +0200)
By default rng-tools are compiled with pkcs11 support.
Make sure opensc-pkcs11.so library is installed inside initramfs to prevent error on boot

modules.d/06rngd/module-setup.sh

index 354bd0bb6554b3d484851a199fedcc5a1021afc7..f07a0cb99af2bd3fa2725406496ff8667b329f5d 100644 (file)
@@ -33,6 +33,8 @@ check() {
 install() {
     inst rngd
     inst_simple "${moddir}/rngd.service" "${systemdsystemunitdir}/rngd.service"
+    # make sure dependant libs are installed too
+    inst_libdir_file opensc-pkcs11.so
 
     systemctl -q --root "$initdir" add-wants sysinit.target rngd.service
 }