3
# lh_chroot_tasks(1) - install tasks into chroot
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'install tasks into chroot')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
Echo_message "Begin installing tasks..."
28
# Requiring stage file
29
Require_stagefile .stage/config .stage/bootstrap
32
Check_stagefile .stage/chroot_tasks
40
if [ -n "${LH_TASKS}" ] && [ "${LH_TASKS}" != "none" ]
43
Restore_cache cache/packages_chroot
46
case "${LH_TASKSEL}" in
48
Check_package chroot/usr/bin/aptitude aptitude
52
Check_package chroot/usr/bin/tasksel tasksel
60
case "${LH_TASKSEL}" in
62
Chroot chroot "aptitude ${APTITUDE_OPTIONS} install ${LH_TASKS}"
66
for TASK in ${LH_TASKS}
68
Chroot chroot "tasksel --debconf-apt-progress --logstderr install ${TASK}"
77
Save_cache cache/packages_chroot
80
Create_stagefile .stage/chroot_tasks