summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/chroot_tasks22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build/chroot_tasks b/scripts/build/chroot_tasks
index 6c7d274e7..892954d00 100755
--- a/scripts/build/chroot_tasks
+++ b/scripts/build/chroot_tasks
@@ -65,6 +65,28 @@ then
tasksel)
for TASK in ${LH_TASKS}
do
+ case "${TASK}" in
+ gnome*)
+ DESKTOP="${DESKTOP} gnome"
+ ;;
+
+ kde*)
+ DESKTOP="${DESKTOP} kde"
+ ;;
+
+ lxde*)
+ DESKTOP="${DESKTOP} lxde"
+ ;;
+
+ xfce*)
+ DESKTOP="${DESKTOP} xfce"
+ ;;
+ esac
+
+ echo "tasksel tasksel/desktop multiselect ${DESKTOP}" > chroot/root/preseed
+ Chroot chroot "debconf-set-selections /root/preseed"
+ rm -f chroot/root/preseed
+
Chroot chroot "tasksel --debconf-apt-progress --logstderr install ${TASK}"
done
;;