#!/bin/sh set -e if [ "$1" ] ; then desktop=$1 else desktop=kde fi if [ "$2" ] ; then apttype=$2 else apttype=aptitude fi from=lenny to=squeeze mirror=http://ftp.skolelinux.org/debian timestamp=$(date +%Y%m%d) run_test() { exec < /dev/null > test-$timestamp-edu-$from-$to-$desktop-$apttype.txt 2>&1 set -x unset LANG tmpdir=chroot-$from-upgrade-$to-$desktop fuser -mv . debootstrap $from $tmpdir $mirror chroot $tmpdir $apttype update cat > $tmpdir/usr/sbin/policy-rc.d <> $tmpdir/etc/apt/sources.list chroot $tmpdir aptitude update PROFILE="Main-Server, Workstation" PROFILE="Main-Server" # Add Edu config with language and profile. mkdir -p $tmpdir/etc/debian-edu cat > $tmpdir/etc/debian-edu/config < $tmpdir/usr/lib/tasksel/tests/$test < $tmpdir/usr/lib/tasksel/tests/$test < $tmpdir/etc/apt/sources.list chroot $tmpdir $apttype update cat <> $tmpdir/etc/dpkg/dpkg.cfg chroot $tmpdir $apttype $debug -y dist-upgrade echo echo "Packages installed in $to" echo "===============================" chroot $tmpdir dpkg -l|awk '/^.. / { print $1,$2,$3}'|grep -v Err echo fuser -mv . } run_test