1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#! /bin/sh -e
. /usr/share/debconf/confmodule
if CODENAME="$(lsb_release -cs)"; then
# TODO cjwatson 2006-04-07: wrong for Debian, I think
db_set mirror/suite "$CODENAME"
db_set mirror/codename "$CODENAME"
fi
rm -f /target/etc/apt/sources.list
rm -f /target/etc/apt/sources.list.d/dvd.list
PATH="/usr/lib/ubiquity/apt-setup:/usr/lib/ubiquity/choose-mirror:$PATH" \
OVERRIDE_BASE_INSTALLABLE=1 OVERRIDE_LEAVE_CD_MOUNTED=1 \
/usr/lib/ubiquity/apt-setup/apt-setup --log-output /target
|