mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 05:51:43 +01:00
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:
parent
b2a30d6fab
commit
fe573cdbdf
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user