]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/porterbox/files/schroot-dsa/config
Some user handholding
[dsa-puppet.git] / modules / porterbox / files / schroot-dsa / config
1 # Settings for "dsa" profile.
2
3 ##
4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 ##
7
8 . "/etc/schroot/default/config"
9
10 # added by weasel:
11 if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
12     case $CHROOT_NAME in
13         *-*_*-dchroot-*)
14             suitevariant_arch_tuple=${CHROOT_NAME%%-dchroot-*}
15             suitevariant=${suitevariant_arch_tuple%_*}
16             SUITE_BASE=${suitevariant%-*}
17             SUITE_VARIANT=${suitevariant##*-}
18         ;;
19         *_*-dchroot-*)
20             SUITE_BASE=${CHROOT_NAME%%_*}
21         ;;
22     esac
23 fi
24
25 CHROOT_FILE_UNPACK_DIR=/srv/chroot/schroot-unpack
26
27 if [ -e /etc/schroot/dsa/default-mirror ]; then
28     MIRROR=$(cat /etc/schroot/dsa/default-mirror )
29 fi
30 MIRROR=${MIRROR:-cdn.debian.net}
31
32 if [ "$(basename "$0")" = "00check" ] &&
33    [ "$CHROOT_TYPE" = "file" ] &&
34    [ "$STAGE" = "setup-start" ]; then
35         echo "Untarring chroot environment.  This might take a minute or two."
36 fi