Fix bug with chroot updating /etc/hosts.

enter_chroot.sh was not updating /etc/hosts from the out-of-chroot
environment.  Make it do that.

BUG=None
TEST=locally

Change-Id: Ieaa337ae90dbc0700c42fa7e4b96faf12d3968cb
Reviewed-on: https://gerrit.chromium.org/gerrit/34226
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Ryan Cui <rcui@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
This commit is contained in:
Ryan Cui 2012-09-27 15:58:42 -07:00
parent b2a30d6fab
commit fe573cdbdf

View File

@ -166,7 +166,7 @@ env_sync_proc() {
while true; do
# Sync files
for file in ${sync_files}; do
for file in "${sync_files[@]}"; do
if ! cmp /${file} ${FLAGS_chroot}/${file} &> /dev/null; then
cp -f /${file} ${FLAGS_chroot}/${file}
fi