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:
parent
1ebf50084b
commit
6a12b2dfd5
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue