#!/bin/sh # Too complicated. Use files. set -x . /etc/make-live.conf echo DEBUG lh_setupapt: ${LIVE_REPOSITORIES} cat > "${LIVE_CHROOT}"/etc/apt/sources.list << EOF deb http://localhost/apt-cacher/ftp.uk.debian.org/debian/ testing main contrib non-free deb-src http://localhost/apt-cacher/ftp.uk.debian.org/debian/ testing main contrib non-free deb http://hendry.iki.fi/debian/ unstable/ deb-src http://hendry.iki.fi/debian/ unstable/ EOF cat > "${LIVE_CHROOT}"/etc/apt/preferences << EOF Package: * Pin: release o=webconverger Pin-Priority: 1001 EOF # Update indices if [ "${2}" = "initial" ] then lh_chroot "apt-get update" else lh_chroot "aptitude update" fi # This gets called at the end of the process, and we can reset to original # sources.list without the cache if [ "${1}" = "default" ] then echo DEBUG RESETting sources.list cat > "${LIVE_CHROOT}"/etc/apt/sources.list << EOF deb http://ftp.uk.debian.org/debian/ testing main contrib non-free deb-src http://ftp.uk.debian.org/debian/ testing main contrib non-free deb http://hendry.iki.fi/debian/ unstable/ deb-src http://hendry.iki.fi/debian/ unstable/ EOF fi echo DEBUG SOURCES BEGIN $@ cat "${LIVE_CHROOT}"/etc/apt/sources.list echo DEBUG SOURCES END set +x