Chromium Code Reviews| Index: build/install-chroot.sh |
| diff --git a/build/install-chroot.sh b/build/install-chroot.sh |
| index 2b523cba6ae44916fa3168ac898fb9d2c634f43b..5a3d9fb369755e0e0fb732f8f07b8de43b950a55 100755 |
| --- a/build/install-chroot.sh |
| +++ b/build/install-chroot.sh |
| @@ -504,6 +504,10 @@ done |
| session="$(schroot -c "${chroot}" -b)" |
| export CHROOT_SESSION_ID="${session}" |
| +# Set GOMA_TMP_DIR for better handling of goma inside chroot. |
| +export GOMA_TMP_DIR=/tmp/goma_tmp_$CHROOT_SESSION_ID |
|
Lei Zhang
2014/10/08 19:00:22
Please put variables in quotes. "/tmp/goma_tmp_$CH
Yoshisato Yanagisawa
2014/10/09 01:02:55
Done.
|
| +mkdir -p $GOMA_TMP_DIR |
| + |
| if [ $# -eq 0 ]; then |
| # Run an interactive shell session |
| schroot -c "${session}" -r -p |
| @@ -554,6 +558,8 @@ done |
| # clean up the stale files by invoking us with "--clean" after having killed |
| # all running processes. |
| schroot -c "${session}" -e |
| +# Since no goma processes are running, we can remove goma directory. |
| +rm -rf $GOMA_TMP_DIR |
| exit $rc |
| EOF |
| sudo chown root:root /usr/local/bin/"${target%bit}" |