summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2009-11-16 13:53:12 +0100
committermaximilian attems <maks@debian.org>2009-11-16 13:54:29 +0100
commit3d1da4511ab62173d457b78a243fdc001b648911 (patch)
tree1ba2ec4509aa3f029641c14e0ac681c3547ab02b /hook-functions
parentc0d14c1245e96be8757ad4a42bf4cbfa9521dc81 (diff)
downloadinitramfs-tools-3d1da4511ab62173d457b78a243fdc001b648911.tar.gz
initramfs-tools-3d1da4511ab62173d457b78a243fdc001b648911.zip
copy_exec: Check if ldd is around
got report of a box with missing ldd. as the errors get seded away the user is left with no idea of the failure. Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/hook-functions b/hook-functions
index bd9e06a..9d59dc1 100644
--- a/hook-functions
+++ b/hook-functions
@@ -147,6 +147,10 @@ copy_exec() {
fi
# Copy the dependant libraries
+ if ! command -v ldd >/dev/null 2>&1 ; then
+ echo "WARNING: no ldd around - install libc-bin"
+ exit 1
+ fi
for x in $(ldd ${source} 2>/dev/null | sed -e '
/\//!d;
/linux-gate/d;