Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1083)

Side by Side Diff: src/scripts/enter_chroot.sh

Issue 521053: Reduce noise in buildbot logs (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/scripts/make_chroot.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to enter the chroot environment 7 # Script to enter the chroot environment
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 REVISION="${REVISION:0:8}**" 133 REVISION="${REVISION:0:8}**"
134 else 134 else
135 REVISION="${REVISION:0:8}" 135 REVISION="${REVISION:0:8}"
136 fi 136 fi
137 CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number CHROMEOS_OFFICIAL=$CHROMEOS_OFFICIAL" 137 CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number CHROMEOS_OFFICIAL=$CHROMEOS_OFFICIAL"
138 138
139 # Run command or interactive shell. Also include the non-chrooted path to 139 # Run command or interactive shell. Also include the non-chrooted path to
140 # the source trunk for scripts that may need to print it (e.g. 140 # the source trunk for scripts that may need to print it (e.g.
141 # build_image.sh). 141 # build_image.sh).
142 sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \ 142 sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \
143 EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" "$@" 143 EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" LANG=C "$@"
144 144
145 # Remove trap and explicitly unmount 145 # Remove trap and explicitly unmount
146 trap - EXIT 146 trap - EXIT
147 teardown_env 147 teardown_env
OLDNEW
« no previous file with comments | « no previous file | src/scripts/make_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698