]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/porterbox/files/schroot-dsa/config
Move some of the porterbox schroot logic to the schroot module that is shared with...
[dsa-puppet.git] / modules / porterbox / files / schroot-dsa / config
diff --git a/modules/porterbox/files/schroot-dsa/config b/modules/porterbox/files/schroot-dsa/config
deleted file mode 100644 (file)
index ba94f6f..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# Settings for "dsa" profile.
-
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-
-FSTAB="/etc/schroot/dsa/fstab"
-[ -e "$FSTAB" ] || FSTAB="/etc/schroot/default/fstab"
-
-COPYFILES="/etc/schroot/dsa/copyfiles"
-[ -e "$COPYFILES" ] || COPYFILES="/etc/schroot/default/copyfiles"
-
-NSSDATABASES="/etc/schroot/dsa/nssdatabases"
-[ -e "$NSSDATABASES" ] || NSSDATABASES="/etc/schroot/default/nssdatabases"
-
-
-# added by weasel:
-if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
-    case $CHROOT_DESCRIPTION in
-        "["*-*_*-dchroot"]"*)
-            chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}"
-            suitevariant_arch_tuple="${chroot_type%%-dchroot-*}"
-            suitevariant=${suitevariant_arch_tuple%_*}
-            SUITE_BASE=${suitevariant%-*}
-            SUITE_VARIANT=${suitevariant##*-}
-        ;;
-        "["*_*-dchroot"]"*)
-            chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}"
-            SUITE_BASE="${chroot_type%%_*}"
-        ;;
-        *)
-            if [ "$STAGE" = "setup-start" ]; then
-               echo >&2 "Unable to parse chroot description for what kind of chroot you want."
-               exit 1
-            fi
-        ;;
-    esac
-fi
-
-CHROOT_FILE_UNPACK_DIR=/srv/chroot/schroot-unpack
-
-if [ -e /etc/schroot/dsa/default-mirror ]; then
-    MIRROR=$(cat /etc/schroot/dsa/default-mirror )
-fi
-MIRROR=${MIRROR:-cdn.debian.net}
-
-if [ "$(basename "$0")" = "00check" ] &&
-   [ "$CHROOT_TYPE" = "file" ] &&
-   [ "$STAGE" = "setup-start" ]; then
-        echo "Untarring chroot environment.  This might take a minute or two."
-fi