[SCM] live-boot branch, debian-old-2.0, updated. debian/2.0.1-1-3-g1745eb3

Daniel Baumann daniel at debian.org
Thu Sep 2 15:57:27 UTC 2010


The following commit has been merged in the debian-old-2.0 branch:
commit 1745eb3e9c7b078df115837f0acee6397b57dcb5
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Sep 2 17:54:58 2010 +0200

    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

-- 
live-boot



More information about the debian-live-changes mailing list