summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-08-27 14:43:27 +0200
committerDaniel Baumann <daniel@debian.org>2012-08-27 14:43:27 +0200
commitd7064dfb271fca5b779e18655102d2eddecd0c35 (patch)
treee077c97dd18da887c28840874925c13cf38917c1 /scripts/build/lb_binary_hooks
parent5f26aa5bd0bfab78f3bfffa72a957663c254bdd9 (diff)
downloadvyos-live-build-d7064dfb271fca5b779e18655102d2eddecd0c35.tar.gz
vyos-live-build-d7064dfb271fca5b779e18655102d2eddecd0c35.zip
Applying patch from Colin Watson <cjwatson@ubuntu.com> to correct chroot hooks execution (Closes: #685534).
Diffstat (limited to 'scripts/build/lb_binary_hooks')
-rwxr-xr-xscripts/build/lb_binary_hooks11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/build/lb_binary_hooks b/scripts/build/lb_binary_hooks
index 07cf4577c..97faa3077 100755
--- a/scripts/build/lb_binary_hooks
+++ b/scripts/build/lb_binary_hooks
@@ -43,17 +43,18 @@ Create_lockfile .lock
# Running hooks
for _HOOK in ${LB_BINARY_HOOKS}
do
- for LOCATION in "${LIVE_BUILD}/hooks" /usr/share/live/build/hooks
+ for LOCATION in "${LIVE_BUILD}/hooks" /usr/share/live/build/hooks
+ do
+ for FILE in "${LOCATION}"/???-"${_HOOK}".binary
do
- if [ -e "${LOCATION}/hooks/???-${_HOOK}.binary" ]
+ if [ -e "${FILE}" ]
then
cd binary
- ./"${LOCATION}/hooks/???-${_HOOK}.binary" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
+ ./"${FILE}" || { Echo_error "${_HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;}
cd "${OLDPWD}"
-
- continue
fi
done
+ done
done
## Processing local hooks