Move all stuff to old/ and add live-initramfs and initial fai-stuff
[grml-live.git] / old / scripts / 01_bootstrap.sh
diff --git a/old/scripts/01_bootstrap.sh b/old/scripts/01_bootstrap.sh
new file mode 100644 (file)
index 0000000..ef6ea1e
--- /dev/null
@@ -0,0 +1,31 @@
+# Filename:      01_bootstrap.sh
+# Purpose:       build script for creating grml live-cd
+# 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: Tue Feb 13 00:13:24 CET 2007
+################################################################################
+
+# main execution
+bootstrap() {
+  debug "executing bootstrap" ; 
+
+  # create main grml-live directory within chroot
+  if ! [ -d "${TARGET}/grml-live/" ] ; then
+     debug "bootstrap: creating ${TARGET}/grml-live/"
+     mkdir "${TARGET}/grml-live/"
+     mkdir "${TARGET}/grml-live/scripts/"
+     mkdir "${TARGET}/grml-live/files/"
+  fi
+
+  # check whether chroot exists already 
+  if [ -f "${TARGET}/grml-live/bootstrap" ] ; then
+     debug_warn "chroot exists already, skipping execution of $DEBOOTSTRAP and continuing"
+  else
+     # $DEBOOTSTRAP --arch $ARCH $RELEASE $TARGET $MIRROR && touch "${TARGET}/grml-live/bootstrap"
+     $DEBOOTSTRAP $RELEASE $TARGET $MIRROR && touch "${TARGET}/grml-live/bootstrap"
+  fi
+}
+
+## END OF FILE #################################################################
+# vim: ai tw=80 ft=sh expandtab