chroot-script: clarify error message iff packages is not available + send it to stderr
authorMichael Prokop <mika@grml.org>
Thu, 13 Oct 2011 15:15:05 +0000 (17:15 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 13 Oct 2011 15:15:05 +0000 (17:15 +0200)
chroot-script

index fe0becb..294b749 100755 (executable)
@@ -182,7 +182,7 @@ packages() {
 
   if [ "$PACKAGES" = 'yes' ] ; then
      if ! [ -r /etc/debootstrap/packages ] ; then
 
   if [ "$PACKAGES" = 'yes' ] ; then
      if ! [ -r /etc/debootstrap/packages ] ; then
-       echo "Error: /etc/debootstrap/packages not found, exiting."
+       echo "Error: /etc/debootstrap/packages (inside chroot) not found, exiting." >&2
        exit 1
      else
        $APTUPDATE
        exit 1
      else
        $APTUPDATE