diff options
author | Timothy Pearson <[email protected]> | 2020-06-03 02:34:26 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2020-06-03 06:43:14 -0500 |
commit | 9ec2a99d6c4670faab2c062fd9a3b9c09f3f3561 (patch) | |
tree | 4027125de52d4092e0f54aca1d943ae695e7fbfd /usr/share | |
parent | 823a7b1e4788484e020abb3cfe8b6fd285fd1716 (diff) | |
download | smartcardauth-9ec2a99d6c4670faab2c062fd9a3b9c09f3f3561.tar.gz smartcardauth-9ec2a99d6c4670faab2c062fd9a3b9c09f3f3561.zip |
Fix random pool stat detection on new Linux kernels
Make sure the udev shared library is available in the initramfs environment
Signed-off-by: Timothy Pearson <[email protected]>
Diffstat (limited to 'usr/share')
-rwxr-xr-x | usr/share/initramfs-tools/hooks/cryptlukssc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/share/initramfs-tools/hooks/cryptlukssc b/usr/share/initramfs-tools/hooks/cryptlukssc index b44b5e1..6665c73 100755 --- a/usr/share/initramfs-tools/hooks/cryptlukssc +++ b/usr/share/initramfs-tools/hooks/cryptlukssc @@ -62,6 +62,16 @@ else cp -L /lib/libpcsclite.so.1 ${DESTDIR}/lib fi +if [ -e /lib/*${ARCHDIR}*/libudev.so.1 ] +then + cp -L /lib/*${ARCHDIR}*/libudev.so.1 ${DESTDIR}/lib +elif [ -e /usr/lib/*${ARCHDIR}*/libudev.so.1 ] +then + cp -L /usr/lib/*${ARCHDIR}*/libudev.so.1 ${DESTDIR}/lib +else + cp -L /lib/libudev.so.1 ${DESTDIR}/lib +fi + if [ -e /usr/lib/*${ARCHDIR}*/libusb-1.0.so.0 ] then cp -L /usr/lib/*${ARCHDIR}*/libusb-1.0.so.0 ${DESTDIR}/usr/lib |