Skip to content

Commit

Permalink
Checking for file existence in initramfs hook (Closes: #595264).
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Sep 26, 2010
1 parent 5788bab commit 58e3eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/live
Expand Up @@ -61,7 +61,7 @@ cp /usr/share/initramfs-tools/scripts/live-helpers "${DESTDIR}"/scripts
# klibc dependencies
for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr*
do
if [ ! -e "${DESTDIR}"/"${FILE}" ]
if [ ! -e "${DESTDIR}"/"${FILE}" ] && ls ${FILE} > /dev/null 2>&1
then
cp -a "${FILE}" "${DESTDIR}"/"${FILE}"
fi
Expand Down

0 comments on commit 58e3eb9

Please sign in to comment.