From: Daniel Baumann Date: Thu, 2 Sep 2010 15:54:58 +0000 (+0200) Subject: Checking for file existence in initramfs hook (Closes: #595264). X-Git-Tag: debian/2.0.15-1~45 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=cc8e921a9aee8e61805f40ddbc77b349e750e553 Checking for file existence in initramfs hook (Closes: #595264). --- diff --git a/hooks/live b/hooks/live index 34d6eab..e77c88b 100755 --- a/hooks/live +++ b/hooks/live @@ -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