diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-06-14 21:27:16 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-06-14 21:27:16 -0500 |
commit | 3879a3b564d024dfe04b5e72f67fe6f2718791b6 (patch) | |
tree | bc5543d4bb6311cf95ef87ba674ba600cc1c9935 /usr/share/initramfs-tools/hooks | |
parent | 7df1147bdbb5dce66e8763b25073e24bb04711c0 (diff) | |
download | smartcardauth-3879a3b564d024dfe04b5e72f67fe6f2718791b6.tar.gz smartcardauth-3879a3b564d024dfe04b5e72f67fe6f2718791b6.zip |
Fix initramfs build failure when multiarch libraries are installed
Diffstat (limited to 'usr/share/initramfs-tools/hooks')
-rwxr-xr-x | usr/share/initramfs-tools/hooks/cryptlukssc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/share/initramfs-tools/hooks/cryptlukssc b/usr/share/initramfs-tools/hooks/cryptlukssc index 0795102..092d2e9 100755 --- a/usr/share/initramfs-tools/hooks/cryptlukssc +++ b/usr/share/initramfs-tools/hooks/cryptlukssc @@ -30,21 +30,21 @@ done # pcscd utilizes pthread_cancel mkdir -p ${DESTDIR}/lib copy_exec /usr/sbin/pcscd /sbin -if [ -e /lib/*/libgcc_s.so.1 ] +if [ -e /lib/*`uname -i`*/libgcc_s.so.1 ] then - copy_exec /lib/*/libgcc_s.so.1 /lib + copy_exec /lib/*`uname -i`*/libgcc_s.so.1 /lib else copy_exec /lib/libgcc_s.so.1 /lib fi -if [ -e /lib/*/libpcsclite.so.1 ] +if [ -e /lib/*`uname -i`*/libpcsclite.so.1 ] then - copy_exec /lib/*/libpcsclite.so.1 /lib + copy_exec /lib/*`uname -i`*/libpcsclite.so.1 /lib else copy_exec /lib/libpcsclite.so.1 /lib fi -if [ -e /usr/lib/*/libusb-1.0.so.0 ] +if [ -e /usr/lib/*`uname -i`*/libusb-1.0.so.0 ] then - copy_exec /usr/lib/*/libusb-1.0.so.0 /usr/lib + copy_exec /usr/lib/*`uname -i`*/libusb-1.0.so.0 /usr/lib else copy_exec /usr/lib/libusb-1.0.so.0 /usr/lib fi @@ -83,9 +83,9 @@ copy_exec /usr/bin/smartauth.sh /bin # Libraries # cp /usr/lib/libltdl.so* ${DESTDIR}/usr/lib # cp /lib/libncurses.so.5 ${DESTDIR}/lib -if [ -e /lib/*/libncursesw.so.5 ] +if [ -e /lib/*`uname -i`*/libncursesw.so.5 ] then - cp /lib/*/libncursesw.so.5 ${DESTDIR}/lib + cp /lib/*`uname -i`*/libncursesw.so.5 ${DESTDIR}/lib else cp /lib/libncursesw.so.5 ${DESTDIR}/lib fi |