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 <synrg@debian.org> for finding this solution.

This commit is contained in:
Daniel Baumann 2010-08-08 03:53:52 +02:00
parent 1ebf50084b
commit 6a12b2dfd5
1 changed files with 22 additions and 0 deletions

View File

@ -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
;;