Revision 6676f007
b/devel/build_chroot | ||
---|---|---|
5 | 5 |
: ${CONF_DIR:=/etc/schroot/chroot.d} |
6 | 6 |
: ${CHROOT_DIR:=/srv/chroot} |
7 | 7 |
: ${ALTERNATIVE_EDITOR:=/usr/bin/vim.basic} |
8 |
# The value of DATA_DIR is read as well from the environment. |
|
8 |
: ${CHROOT_FINAL_HOOK:=/bin/true} |
|
9 |
# Additional Variables taken from the environmen |
|
10 |
# DATA_DIR |
|
11 |
# CHROOT_EXTRA_DEBIAN_PACKAGES |
|
9 | 12 |
|
10 | 13 |
#Automatically generated variables |
11 | 14 |
CHROOTNAME=$DIST_RELEASE-$ARCH |
... | ... | |
209 | 212 |
in_chroot -- \ |
210 | 213 |
$APT_INSTALL python-docutils debhelper quilt |
211 | 214 |
|
215 |
# extra debian packages |
|
216 |
|
|
217 |
for package in $CHROOT_EXTRA_DEBIAN_PACKAGES |
|
218 |
do in_chroot -- \ |
|
219 |
$APT_INSTALL $package |
|
220 |
done |
|
221 |
|
|
212 | 222 |
#Set default editor |
213 | 223 |
in_chroot -- \ |
214 | 224 |
update-alternatives --set editor $ALTERNATIVE_EDITOR |
215 | 225 |
|
226 |
# Final user hook |
|
227 |
|
|
228 |
in_chroot -- $CHROOT_FINAL_HOOK |
|
229 |
|
|
216 | 230 |
rm -f $COMP_FILEPATH |
217 | 231 |
echo "Creating compressed schroot image..." |
218 | 232 |
cd $CHDIR |
Also available in: Unified diff