mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
Reduce noise in buildbot logs
Set LANG=C also when providing a command to enter_chroot.sh. Should make buildbot logs quite a bit shorter. Review URL: http://codereview.chromium.org/521053
This commit is contained in:
parent
c1d3332aed
commit
3a3566b51f
@ -140,7 +140,7 @@ CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number
|
||||
# the source trunk for scripts that may need to print it (e.g.
|
||||
# build_image.sh).
|
||||
sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \
|
||||
EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" "$@"
|
||||
EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" LANG=C "$@"
|
||||
|
||||
# Remove trap and explicitly unmount
|
||||
trap - EXIT
|
||||
|
@ -166,9 +166,6 @@ sudo mount --bind "$GCLIENT_ROOT" "${FLAGS_chroot}$CHROOT_TRUNK_DIR"
|
||||
|
||||
# Niceties for interactive logins ('enter_chroot.sh'); these are ignored
|
||||
# when specifying a command to enter_chroot.sh.
|
||||
# Warn less when apt-get installing packqages
|
||||
echo "export LANG=C" >> "$FLAGS_chroot/home/$USER/.bashrc"
|
||||
chmod a+x "$FLAGS_chroot/home/$USER/.bashrc"
|
||||
# Automatically change to scripts directory
|
||||
echo "cd trunk/src/scripts" >> "$FLAGS_chroot/home/$USER/.profile"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user