From 6a12b2dfd5d521c23a801ed0ba995a2691fd9718 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 8 Aug 2010 03:53:52 +0200 Subject: Setting default desktop for tasksel when installing package tasks to avoid ending up with a pulled in gnome in all cases, thanks a lot to Ben Armstrong for finding this solution. --- scripts/build/chroot_tasks | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scripts/build/chroot_tasks b/scripts/build/chroot_tasks index 6c7d274..892954d 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 ;; -- cgit v1.0