X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=dd16b4c144d5ac47e43976468dea525b076bfd8d;hp=a22a021ca8dadf90c522f0eb2d9e31ef986ef9dd;hb=f57ddab767aa174cdee6003ed6d13a5100044d41;hpb=b2febf4be9ecebfea7d91197cd319753638169f9 diff --git a/grml-debootstrap b/grml-debootstrap index a22a021..dd16b4c 100644 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,17 +4,19 @@ # 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: Fre Nov 03 00:54:39 CET 2006 [mika] +# Latest change: Fre Nov 03 11:15:56 CET 2006 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/apcs04.html.en -set -eu # exit on any error +set -e # exit on any error . /etc/grml/lsb-functions . /etc/grml/script-functions check4progs debootstrap || exit 1 +set -u # make sure we don't have empty variables + if [ -r /etc/debootstrap/config ] ; then . /etc/debootstrap/config else @@ -45,10 +47,11 @@ eend $? einfo "Preparing chroot system" cp $CONFFILES/chroot-script $MNTPOINT/bin/chroot-script chmod 755 $MNTPOINT/bin/chroot-script - mkdir $MNTPOINT/etc/deboostrap/ + mkdir $MNTPOINT/etc/debootstrap/ - # make sure we have our config file for later use via chroot-script + # make sure we have our files for later use via chroot-script cp /etc/debootstrap/config $MNTPOINT/etc/debootstrap/ + cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages # copy any existing existing files to chroot [ -d /etc/debootstrap/boot ] && cp -a /etc/debootstrap/boot/* $MNTPOINT/boot/