From 1745eb3e9c7b078df115837f0acee6397b57dcb5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 2 Sep 2010 17:54:58 +0200 Subject: [PATCH] Checking for file existence in initramfs hook (Closes: #595264). --- hooks/live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4