summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-26 15:29:41 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:47:59 +0100
commit3d4b86718ca4cdae8c6ead03035abd561a5d5728 (patch)
treea4d296673217f5b85f47d6e392b1d78f731b0c05
parent795d2ed144c5dccfb6d51ade2224e180d7b422ea (diff)
downloadlive-boot-3d4b86718ca4cdae8c6ead03035abd561a5d5728.tar.gz
live-boot-3d4b86718ca4cdae8c6ead03035abd561a5d5728.zip
Handle non-existing klibc includes in live hook (Closes: #475783).
-rwxr-xr-xhooks/live5
1 files changed, 4 insertions, 1 deletions
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