Don't try to install standard task on anything but ubuntu.

This commit is contained in:
Daniel Baumann 2011-06-11 10:59:53 +02:00
parent 2b2e0fb1bf
commit 25f7152e5e

View File

@ -64,11 +64,25 @@ then
# Installing tasks
case "${LB_TASKSEL}" in
apt)
# This needs to be cleaned up at some point
APT_TASKS=
for TASK in ${LB_TASKS}
case "${LB_MODE}" in
ubuntu)
TASKS="${LB_TASKS}"
;;
*)
# Avoid standard tasks which appears to not exist
TASKS="$(echo ${LB_TASKS} | sed -e 's|standard||')"
;;
esac
for TASK in ${TASKS}
do
APT_TASKS="${APT_TASKS:+$APT_TASKS }$TASK^"
done
Chroot chroot "apt-get ${APT_OPTIONS} install ${APT_TASKS}"
;;