Move all stuff to old/ and add live-initramfs and initial fai-stuff
[grml-live.git] / old / 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      mkdir "${TARGET}/grml-live/scripts/"
18      mkdir "${TARGET}/grml-live/files/"
19   fi
20
21   # check whether chroot exists already 
22   if [ -f "${TARGET}/grml-live/bootstrap" ] ; then
23      debug_warn "chroot exists already, skipping execution of $DEBOOTSTRAP and continuing"
24   else
25      # $DEBOOTSTRAP --arch $ARCH $RELEASE $TARGET $MIRROR && touch "${TARGET}/grml-live/bootstrap"
26      $DEBOOTSTRAP $RELEASE $TARGET $MIRROR && touch "${TARGET}/grml-live/bootstrap"
27   fi
28 }
29
30 ## END OF FILE #################################################################
31 # vim: ai tw=80 ft=sh expandtab