Checking for file existence in initramfs hook (Closes: #595264).
authorDaniel Baumann <daniel@debian.org>
Thu, 2 Sep 2010 15:54:58 +0000 (17:54 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 2 Sep 2010 15:55:10 +0000 (17:55 +0200)
hooks/live

index 34d6eab..e77c88b 100755 (executable)
@@ -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