summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-02 17:54:58 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:27 +0100
commitcc8e921a9aee8e61805f40ddbc77b349e750e553 (patch)
treeb465bf7ac4aa13bf25863f742f021a58d114975b
parentee6f5eef0b8ca53543b33d63bf41a278093de614 (diff)
downloadlive-boot-cc8e921a9aee8e61805f40ddbc77b349e750e553.tar.gz
live-boot-cc8e921a9aee8e61805f40ddbc77b349e750e553.zip
Checking for file existence in initramfs hook (Closes: #595264).
-rwxr-xr-xhooks/live2
1 files changed, 1 insertions, 1 deletions
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