Bug#685534: live-build: chroot hooks broken
Package: live-build
Version: 3.0~a57-1
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch quantal
LB_CHROOT_HOOKS doesn't work, because lb_chroot_hooks looks for the
wrong file names. Here's a patch.
diff --git a/scripts/build/lb_chroot_hooks b/scripts/build/lb_chroot_hooks
index 0ccfe2b..9d781f4 100755
--- a/scripts/build/lb_chroot_hooks
+++ b/scripts/build/lb_chroot_hooks
@@ -54,7 +54,7 @@ for _HOOK in ${LB_CHROOT_HOOKS}
do
for LOCATION in "${LIVE_BUILD}/hooks" /usr/share/live/build/hooks
do
- if [ -e "${LOCATION}/hooks/???-${_HOOK}.binary" ]
+ if [ -e "${LOCATION}/hooks/???-${_HOOK}.chroot" ]
then
mkdir -p chroot/root/lb_chroot_hooks
cp "${LOCATION}"/hooks/???-"${_HOOK}".chroot chroot/root/lb_chroot_hooks
Thanks,
--
Colin Watson [cjwatson@ubuntu.com]
Reply to: