X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=0dc55be4dc7051648348f4a104dd38b3e062c524;hp=5bfcb4429badb7ffa0728b1cfba7fa1d263d7fe1;hb=03983d36c31cf7be597e421be8d8a0f167064f38;hpb=75700fa47e63a9b329fd784b6588fde3c4a29f39 diff --git a/chroot-script b/chroot-script index 5bfcb44..0dc55be 100644 --- a/chroot-script +++ b/chroot-script @@ -4,7 +4,7 @@ # 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: Mon Apr 16 14:48:41 CEST 2007 [mika] +# Latest change: Mon Apr 16 15:26:11 CEST 2007 [mika] ################################################################################ set -e # exit on any error @@ -36,7 +36,7 @@ stage() { echo "$2" > "$STAGES/$1" return 0 elif grep -q done "$STAGES/$1" 2>/dev/null ; then - ewarn "Notice: stage $1 has been executed already, skipping execution therefore." ; eend 0 + echo "Notice: stage $1 has been executed already, skipping execution therefore.">&2 return 1 fi } @@ -89,7 +89,7 @@ packages() { exit 1 else $APTUPDATE - $APTINSTALL $(cat /etc/debootstrap/packages) $GRMLPACKAGES + DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL $(cat /etc/debootstrap/packages) $GRMLPACKAGES fi fi } @@ -121,7 +121,7 @@ kernel() { else KERNELPACKAGES="linux-image-$KERNEL linux-headers-$KERNEL" fi - $APTINSTALL $KERNELPACKAGES + DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL $KERNELPACKAGES fi } # }}}