support
authorMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 10:38:54 +0000 (11:38 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 10:38:54 +0000 (11:38 +0100)
chroot-script
config

index d6166dc..ee169b0 100644 (file)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Fre Nov 03 11:26:43 CET 2006 [mika]
+# Latest change: Fre Nov 03 11:37:19 CET 2006 [mika]
 ################################################################################
 
 set -e
 ################################################################################
 
 set -e
@@ -13,6 +13,10 @@ set -e
 
 [ -r /proc/1 ] || mount -t proc   none /proc
 
 
 [ -r /proc/1 ] || mount -t proc   none /proc
 
+if [ -n "MIRROR_LIST" ] ; then
+   echo $MIRROR_LIST > /etc/apt/sources.list
+fi
+
 if [ -n "$RECONFIGURE" ] ; then
    for package in $RECONFIGURE ; do
        dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it."
 if [ -n "$RECONFIGURE" ] ; then
    for package in $RECONFIGURE ; do
        dpkg --list $package && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it."
diff --git a/config b/config
index 31d7789..956faae 100644 (file)
--- a/config
+++ b/config
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Fre Nov 03 00:23:46 CET 2006 [mika]
+# Latest change: Fre Nov 03 11:38:42 CET 2006 [mika]
 ################################################################################
 
 ################################################################################
 ################################################################################
 
 ################################################################################
@@ -35,6 +35,12 @@ MNTPOINT='/mnt/test'
 # mirror (download packages from)
 MIRROR='ftp://ftp.tugraz.at/mirror/debian'
 
 # mirror (download packages from)
 MIRROR='ftp://ftp.tugraz.at/mirror/debian'
 
+# entries for /etc/apt/sources.list (if empty the default is taken)
+MIRROR_LIST="
+deb     http://ftp.tu-graz.ac.at/mirror/debian        unstable        main contrib non-free
+deb     http://ftp.de.debian.org/debian        unstable        main contrib non-free
+"
+
 # release (which Debian version should be installed)
 RELEASE='etch'
 
 # release (which Debian version should be installed)
 RELEASE='etch'