From: Daniel Baumann Date: Sat, 26 Apr 2008 13:29:41 +0000 (+0200) Subject: Handle non-existing klibc includes in live hook (Closes: #475783). X-Git-Tag: debian/1.132.1-1~18 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=81345700ec2e03231cc4a6a57b258187152afa34;p=live-boot-grml.git Handle non-existing klibc includes in live hook (Closes: #475783). --- diff --git a/hooks/live b/hooks/live index 3552f3a..e653aef 100755 --- a/hooks/live +++ b/hooks/live @@ -49,7 +49,10 @@ cp /usr/share/initramfs-tools/scripts/live-helpers "${DESTDIR}"/scripts # klibc dependencies for hidden_klibc_dep_library in libacl libblkid libuuid libdevmapper libattr do - cp -a /lib/${hidden_klibc_dep_library}.so.* "${DESTDIR}"/lib + if ls /lib/${hidden_klibc_dep_library}.so.* > /dev/null 2>&1 + then + cp -a /lib/${hidden_klibc_dep_library}.so.* "${DESTDIR}"/lib + fi done # Handling other stuff