summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-07-19 11:57:14 +0200
committerDaniel Baumann <daniel@debian.org>2011-07-19 11:57:21 +0200
commite4793268a3d14e945a96466441e31259c0df6e1b (patch)
tree65c3447d106633bb99033abbfb1595f32bc96998 /functions/defaults.sh
parenteb2a305a5f692a1661001bae1c8e6d202f4280e9 (diff)
downloadvyos-live-build-e4793268a3d14e945a96466441e31259c0df6e1b.tar.gz
vyos-live-build-e4793268a3d14e945a96466441e31259c0df6e1b.zip
Enabling hooks based on the mode we're building for.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh16
1 files changed, 15 insertions, 1 deletions
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}"