From c74cbb7b9a5821dca038e8527a27369ba84a9ef9 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Sun, 5 Sep 2010 00:35:17 +0200 Subject: sources.list changes * ship pre-configured sources.list for chroot (with deb-src included) * convert sources.list.d to plain sources.list in chroot --- config/chroot_local-hooks/sources.list-format | 19 +++++++++++++++++++ config/chroot_local-includes/etc/apt/sources.list | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 config/chroot_local-hooks/sources.list-format create mode 100644 config/chroot_local-includes/etc/apt/sources.list diff --git a/config/chroot_local-hooks/sources.list-format b/config/chroot_local-hooks/sources.list-format new file mode 100644 index 0000000..7fcf14e --- /dev/null +++ b/config/chroot_local-hooks/sources.list-format @@ -0,0 +1,19 @@ +#!/bin/bash +# update sources.list + +if [ -d /etc/apt/sources.list.d ]; then + for repo in /etc/apt/sources.list.d/* + do + case "$(basename "$repo" .list)" in + live.debian.net) + # ignore and remove these repos + ;; + *) + cat "$repo" >> /etc/apt/sources.list + echo >> /etc/apt/sources.list + ;; + esac + rm "$repo" + done +fi + diff --git a/config/chroot_local-includes/etc/apt/sources.list b/config/chroot_local-includes/etc/apt/sources.list new file mode 100644 index 0000000..f4d8f57 --- /dev/null +++ b/config/chroot_local-includes/etc/apt/sources.list @@ -0,0 +1,12 @@ +# See sources.list(5) for more information, especialy +# Remember that you can only use http, ftp or file URIs +# CDROMs are managed through the apt-cdrom tool. + +# Debian Squeeze +deb http://ftp.de.debian.org/debian squeeze main contrib non-free +deb-src http://ftp.de.debian.org/debian squeeze main contrib non-free + +# Debian Squeeze Updates +deb http://security.debian.org squeeze/updates main contrib non-free +deb-src http://security.debian.org squeeze/updates main contrib non-free + -- cgit v1.0