X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=old%2Fscripts%2F01_bootstrap.sh;fp=old%2Fscripts%2F01_bootstrap.sh;h=ef6ea1e08bbd8e43791fba9d367205e08e435189;hb=1a06f3f65adef0fdd432aad11f479020630778a5;hp=0000000000000000000000000000000000000000;hpb=3ce5c1d60539aa8d2a01a810aa92325f8c513696;p=grml-live-grml.git diff --git a/old/scripts/01_bootstrap.sh b/old/scripts/01_bootstrap.sh new file mode 100644 index 0000000..ef6ea1e --- /dev/null +++ b/old/scripts/01_bootstrap.sh @@ -0,0 +1,31 @@ +# Filename: 01_bootstrap.sh +# Purpose: build script for creating grml live-cd +# Authors: grml-team (grml.org), (c) Michael Prokop +# 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