mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56: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.
|
# the source trunk for scripts that may need to print it (e.g.
|
||||||
# build_image.sh).
|
# build_image.sh).
|
||||||
sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \
|
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
|
# Remove trap and explicitly unmount
|
||||||
trap - EXIT
|
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
|
# Niceties for interactive logins ('enter_chroot.sh'); these are ignored
|
||||||
# when specifying a command to enter_chroot.sh.
|
# 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
|
# Automatically change to scripts directory
|
||||||
echo "cd trunk/src/scripts" >> "$FLAGS_chroot/home/$USER/.profile"
|
echo "cd trunk/src/scripts" >> "$FLAGS_chroot/home/$USER/.profile"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user