mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
enter_chroot is often called from multiple processes and we expect that it doesn't modify anything unless it's within a lock. This CL moves chroot modifications up to occur during the lock so that we don't have multiple modifications to .gitconfig occurring at the same time. This prevents the following warning: error: could not lock config file /b/cbuild/chroot/home/chrome-bot/.gitconfig: File exists See http://chromeos-botmaster.mtv.corp.google.com:8026/builders/TOT%20Pre-Flight%20Queue/builds/3771/steps/Test/logs/stdio BUG=chromium-os:17661 TEST=Run enter_chroot.sh and verify gitconfig is still setup. Change-Id: I73a7755d62cce895c76b8e0f35838b3874e5db33 Reviewed-on: http://gerrit.chromium.org/gerrit/4208 Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: David James <davidjames@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%