use
authorMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 11:27:32 +0000 (12:27 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 11:27:32 +0000 (12:27 +0100)
chroot-script
config

index 20fa315..6b5b303 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 12:13:15 CET 2006 [mika]
+# Latest change: Fre Nov 03 12:27:20 CET 2006 [mika]
 ################################################################################
 
 set -e
 ################################################################################
 
 set -e
@@ -13,8 +13,8 @@ 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
+if [ -n "$CHROOTMIRROR" ] ; then
+   echo "$CHROOTMIRROR" > /etc/apt/sources.list
 fi
 
 # install additional packages
 fi
 
 # install additional packages
diff --git a/config b/config
index 956faae..732bcfd 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 11:38:42 CET 2006 [mika]
+# Latest change: Fre Nov 03 12:27:17 CET 2006 [mika]
 ################################################################################
 
 ################################################################################
 ################################################################################
 
 ################################################################################
@@ -32,14 +32,12 @@ CONFFILES='/etc/debootstrap/'
 # mount point where chroot actions should take place
 MNTPOINT='/mnt/test'
 
 # mount point where chroot actions should take place
 MNTPOINT='/mnt/test'
 
-# mirror (download packages from)
+# set mirror where debootstrap should download packages from
 MIRROR='ftp://ftp.tugraz.at/mirror/debian'
 
 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
-"
+# specify entry which should be used for /etc/apt/sources.list,
+# if empty then any existing /etc/apt/sources.list will be taken
+CHROOTMIRROR='deb ftp://ftp.tugraz.at/mirror/debian unstable main contrib non-free'
 
 # release (which Debian version should be installed)
 RELEASE='etch'
 
 # release (which Debian version should be installed)
 RELEASE='etch'