From e4793268a3d14e945a96466441e31259c0df6e1b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 19 Jul 2011 11:57:14 +0200 Subject: Enabling hooks based on the mode we're building for. --- functions/defaults.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 77966369e..78c39e69f 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -574,7 +574,21 @@ Set_defaults () # Setting union filesystem LB_UNION_FILESYSTEM="${LB_UNION_FILESYSTEM:-aufs}" - # LB_HOOKS + # Setting distribution hooks + case "${LB_MODE}" in + *) + LB_CHROOT_HOOKS="update-apt-xapian-index \ + update-mlocate-database \ + remove-python-py" + ;; + + kubuntu) + LB_CHROOT_HOOKS="update-apt-xapian-index \ + update-mlocate-database \ + remove-gnome-icon-cache \ + remove-python-py" + ;; + esac # Setting interactive shell/X11/Xnest LB_INTERACTIVE="${LB_INTERACTIVE:-false}" -- cgit v1.2.3