Skip to content

Commit

Permalink
Handle non-existing klibc includes in live hook (Closes: #475783).
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Apr 26, 2008
1 parent 6d0f15b commit 8134570
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hooks/live
Expand Up @@ -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
Expand Down

0 comments on commit 8134570

Please sign in to comment.