X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2F01_bootstrap.sh;fp=scripts%2F01_bootstrap.sh;h=027f5bdb55cca68468fff8f011dd77a43afc7f1d;hb=46e3a2d278bc75b91f6a5eae3fbdedae02441d64;hp=0000000000000000000000000000000000000000;hpb=9dc51d74f26d10d61130c86a0f3369c3f65970b7;p=grml-live.git diff --git a/scripts/01_bootstrap.sh b/scripts/01_bootstrap.sh new file mode 100644 index 0000000..027f5bd --- /dev/null +++ b/scripts/01_bootstrap.sh @@ -0,0 +1,28 @@ +# 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/" + 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" + fi +} + +## END OF FILE ################################################################# +# vim: ai tw=80 ft=sh expandtab