/usr/lib/tasksel/tests/limited is in tasksel-data 3.34ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
#
# Selects a task by default if particular task names are listed in
# tasksel/limit-tasks. Use like this:
#
# Test-limited: ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video
#
# This will cause the task to be selected if any of those tasks are listed
# in tasksel/limit-tasks, which is a reasonably good marker for a
# specialised CD install. This only applies to new installs.
# If we're being used to test an enhancing task, then it's always OK to go
# ahead and mark the task for installation.
if [ "$TESTING_ENHANCER" ]; then
exit 0 # do not display, but do install task
fi
if [ ! "$NEW_INSTALL" ]; then
exit 3 # display task, not marked for installation
fi
. /usr/share/debconf/confmodule
if ! db_fget tasksel/limit-tasks seen || [ "$RET" != true ]; then
exit 3 # display task, not marked for installation
fi
db_get tasksel/limit-tasks
LIMIT="$(echo "$RET" | sed 's/,/ /g')"
shift
for task; do
for limit in $LIMIT; do
if [ "$task" = "$limit" ]; then
exit 2 # display task, marked for installation
fi
done
done
exit 3 # display task, not marked for installation
|