Skip to content

Commit

Permalink
Handling conflicting klibc includes with initramfs-hooks of other pac…
Browse files Browse the repository at this point in the history
…kages (Closes: 475783).
  • Loading branch information
daniel-baumann committed Apr 28, 2008
1 parent c94b8b4 commit 69f6453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/live
Expand Up @@ -47,11 +47,11 @@ cp /usr/share/initramfs-tools/scripts/live-functions "${DESTDIR}"/scripts
cp /usr/share/initramfs-tools/scripts/live-helpers "${DESTDIR}"/scripts

# klibc dependencies
for hidden_klibc_dep_library in libacl libblkid libuuid libdevmapper libattr
for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr*
do
if ls /lib/${hidden_klibc_dep_library}.so.* > /dev/null 2>&1
if [ ! -e "${DESTDIR}"/"${FILE}" ]
then
cp -a /lib/${hidden_klibc_dep_library}.so.* "${DESTDIR}"/lib
cp -a "${FILE}" "${DESTDIR}"/"${FILE}"
fi
done

Expand Down

0 comments on commit 69f6453

Please sign in to comment.