# define chroot mirror {{{
chrootmirror() {
[ -n "$KEEP_SRC_LIST" ] && return
+ [ -z "$COMPONENTS" ] && COMPONENTS='main contrib non-free'
+
if [ -n "$ISO" ] ; then
- echo "deb $ISO $RELEASE main contrib" > /etc/apt/sources.list
- [ -n "$MIRROR" ] && echo "deb $MIRROR $RELEASE main contrib non-free" >> /etc/apt/sources.list
+ echo "deb $ISO $RELEASE $COMPONENTS" > /etc/apt/sources.list
+ [ -n "$MIRROR" ] && echo "deb $MIRROR $RELEASE $COMPONENTS" >> /etc/apt/sources.list || /bin/true
else
if [ -n "$MIRROR" ] ; then
- echo "deb $MIRROR $RELEASE main contrib non-free" > /etc/apt/sources.list
+ echo "deb $MIRROR $RELEASE $COMPONENTS" > /etc/apt/sources.list
fi
fi
}
# squeeze (testing), sid (unstable)
RELEASE='lenny'
+# define components that should be used within sources.list
+# default:
+# COMPONENTS='main contrib non-free'
+
# architecture
# if unset the default of the running system (see 'dpkg --print-architecture') will be taken
# notice: installing an amd64 system requires a 64bit kernel