diff options
author | Daniel Baumann <daniel@debian.org> | 2011-07-19 11:57:14 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-07-19 11:57:21 +0200 |
commit | e4793268a3d14e945a96466441e31259c0df6e1b (patch) | |
tree | 65c3447d106633bb99033abbfb1595f32bc96998 /functions | |
parent | eb2a305a5f692a1661001bae1c8e6d202f4280e9 (diff) | |
download | vyos-live-build-e4793268a3d14e945a96466441e31259c0df6e1b.tar.gz vyos-live-build-e4793268a3d14e945a96466441e31259c0df6e1b.zip |
Enabling hooks based on the mode we're building for.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/defaults.sh | 16 |
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}" |