# Preseed file to get UiO installation going. Most preseeding is done in # the usit-install-udeb package. This file only contain the settings we # can not handle there. # location of the web proxy, in case it is required #d-i mirror/http/proxy string http://webcache:3128 d-i mirror/http/proxy seen true d-i mirror/ftp/proxy seen true # Fetch latest usit-install-udeb to activate UiO specific installation. # Install eatmydata-udeb to speed up the installation. d-i preseed/early_command string anna-install eatmydata-udeb; cd /tmp; archiveurl=http://deb.uio.no/debian; arch=$(udpkg --print-architecture); wget $archiveurl/dists/stretch/main/debian-installer/binary-$arch/Packages; packages_file=Packages; desired_udebs="usit-install-udeb"; for file in $(grep 'Filename:' $packages_file | cut -d : -f 2); do udeb=$(basename $file | cut -d _ -f 1); for u in $desired_udebs ; do if [ "$u" = "$udeb" ]; then url="$archiveurl/$file"; echo "info: Trying to fetch and install $url"; if wget $url; then udpkg --unpack $(basename $file); else echo "error: Unable to download $url"; fi; break; fi; done; done; if [ -z "$url" ] ; then echo "error: Unable to find updated udebs"; fi # Avoid questions about mirrors, using manual setup choose-mirror-bin mirror/country string enter information manually choose-mirror-bin mirror/protocol select http choose-mirror-bin mirror/http/hostname string deb.debian.org choose-mirror-bin mirror/http/directory string /debian # Activate UiO repository. Can not be done in udeb as it differ from version to version d-i apt-setup/local0/repository string http://deb.uio.no/debian stretch main d-i apt-setup/local0/comment string UiO stretch repository d-i apt-setup/local0/source boolean true d-i apt-setup/local0/key string http://deb.uio.no/debian/archive-key.asc