027f5bdb55cca68468fff8f011dd77a43afc7f1d
[grml-live.git] / scripts / 01_bootstrap.sh
1 # Filename:      01_bootstrap.sh
2 # Purpose:       build script for creating grml live-cd
3 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports:   see http://grml.org/bugs/
5 # License:       This file is licensed under the GPL v2.
6 # Latest change: Tue Feb 13 00:13:24 CET 2007
7 ################################################################################
8
9 # main execution
10 bootstrap() {
11   debug "executing bootstrap" ; 
12
13   # create main grml-live directory within chroot
14   if ! [ -d "${TARGET}/grml-live/" ] ; then
15      debug "bootstrap: creating ${TARGET}/grml-live/"
16      mkdir "${TARGET}/grml-live/"
17   fi
18
19   # check whether chroot exists already 
20   if [ -f "${TARGET}/grml-live/bootstrap" ] ; then
21      debug_warn "chroot exists already, skipping execution of $DEBOOTSTRAP and continuing"
22   else
23      $DEBOOTSTRAP --arch $ARCH $RELEASE $TARGET $MIRROR && touch "${TARGET}/grml-live/bootstrap"
24   fi
25 }
26
27 ## END OF FILE #################################################################
28 # vim: ai tw=80 ft=sh expandtab