[SCM] Debian Live build scripts branch, master, updated. 1.0.2-4-29-g9306ac4
Daniel Baumann
daniel at debian.org
Mon Jan 26 14:10:21 UTC 2009
The following commit has been merged in the master branch:
commit 9306ac401118b1b941af0be062a51c1d7eb78d84
Author: Daniel Baumann <daniel at debian.org>
Date: Mon Jan 26 15:01:22 2009 +0100
Fixing and unifying handling of hooks.
diff --git a/helpers/lh_chroot_hooks b/helpers/lh_chroot_hooks
index 6296b46..64a6526 100755
--- a/helpers/lh_chroot_hooks
+++ b/helpers/lh_chroot_hooks
@@ -43,7 +43,9 @@ Check_lockfile .lock
Create_lockfile .lock
# Processing hooks
-for HOOK in ${LH_PACKAGES_LISTS} ${LH_TASKS}
+HOOKS="$(echo ${LH_HOOKS} ${LH_PACKAGES_LISTS} ${LH_TASKS} | sed -e 's| |\n|g' | sort -u)"
+
+for HOOK in ${HOOKS}
do
if [ -f ${LH_BASE:-/usr/share/live-helper}/hooks/"${HOOK}" ]
then
@@ -57,7 +59,7 @@ do
fi
# Executing hook
- Chroot chroot "/root/${HOOK}"
+ Chroot chroot "./root/${HOOK}"
# Removing hook
rm -f chroot/root/"${HOOK}"
@@ -66,8 +68,3 @@ do
Create_stagefile .stage/chroot_hooks
fi
done
-
-if [ -n "${LH_HOOKS}" ] && [ "${LH_HOOKS}" != "none" ]
-then
- LH_DEBCONF_FRONTEND="readline" LH_DEBCONF_PRIORITY="low" LH_DEBCONF_NOWARNINGS="no" Chroot chroot "${LH_HOOKS}"
-fi
--
Debian Live build scripts
More information about the debian-live-changes
mailing list