~ubuntu-branches/ubuntu/intrepid/debian-installer-utils/intrepid

« back to all changes in this revision

Viewing changes to in-target

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-23 18:07:32 UTC
  • Revision ID: james.westby@ubuntu.com-20080623180732-72g4gscdzo9z73iu
Tags: 1.59ubuntu1
* Resynchronise with Debian. Remaining changes:
  - user-params: Don't propagate vga=* or break=* to installed system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -e
3
3
. /lib/chroot-setup.sh
4
4
 
 
5
STDOUT=
 
6
if [ "$1" = "--pass-stdout" ]; then
 
7
        STDOUT=$1
 
8
        shift
 
9
fi
 
10
 
5
11
if ! chroot_setup; then
6
12
        logger -t in-target -- "Unexpected error; command not executed: '$@'"
7
13
        exit 1
14
20
DEBIAN_FRONTEND=passthrough
15
21
export DEBIAN_FRONTEND
16
22
ERRCODE=0
17
 
log-output -t in-target chroot /target "$@" || ERRCODE=$?
 
23
log-output -t in-target $STDOUT chroot /target "$@" || ERRCODE=$?
18
24
 
19
25
chroot_cleanup
20
26