#!/bin/sh

set -e

if ! test -n "$flags"; then
    exit 0
fi

chroot $TARGET dselect update
chroot $TARGET mount /proc
yes '' | chroot $TARGET tasksel $flags
chroot $TARGET umount /proc
chroot $TARGET apt-get clean
