[SCM] live-boot branch, debian-next, updated. debian/3.0_a2-1-4-g7c90c8b

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


The following commit has been merged in the debian-next branch:
commit 7c90c8ba31344a43cbbc0d6415cb3993087baff0
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 c2292d5..19ff26a 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