# 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: Sam Nov 18 10:32:30 CET 2006 [mika]
+# Latest change: Mon Apr 09 14:42:58 CEST 2007 [mika]
################################################################################
################################################################################
# supported values: sarge etch sid
RELEASE='etch'
-# architecture (not yet officially supported by grml-debootstrap, work in progress)
-# if unset the default (i386) will be taken
+# 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
# do not forget to adjust $KERNEL for selected architecture as well
# ARCH='amd64'
the chroot when running grml-debootstrap. (Just a cosmetic
change as there aren't any errors but warning messages from
dpkg.)
+ * Always assume architecture of the running system (overwriting
+ via $ARCH is still supported of course).
-- Michael Prokop <mika@grml.org> Mon, 9 Apr 2007 14:35:21 +0200
# 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: Mon Apr 09 14:35:18 CEST 2007 [mika]
+# Latest change: Mon Apr 09 14:41:57 CEST 2007 [mika]
################################################################################
-# http://www.debian.org/releases/stable/i386/apcs04.html.en
+# http://www.debian.org/releases/stable/i386/index.html.en
set -e # exit on any error
if [ -n "$ARCH" ] ; then
ARCHCMD="--arch $ARCH"
ARCHINFO=" (${ARCH})"
+else
+ ARCH="$(dpkg --print-architecture)"
+ ARCHCMD="--arch $ARCH"
+ ARCHINFO=" (${ARCH})"
fi
+
einfo "Running $DEBOOTSTRAP for release ${RELEASE}${ARCHINFO} using mirror $MIRROR"
$DEBOOTSTRAP $ARCHCMD $RELEASE $MNTPOINT $MIRROR
eend $?