mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 22:12:10 +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
|
while true; do
|
||||||
# Sync files
|
# Sync files
|
||||||
for file in ${sync_files}; do
|
for file in "${sync_files[@]}"; do
|
||||||
if ! cmp /${file} ${FLAGS_chroot}/${file} &> /dev/null; then
|
if ! cmp /${file} ${FLAGS_chroot}/${file} &> /dev/null; then
|
||||||
cp -f /${file} ${FLAGS_chroot}/${file}
|
cp -f /${file} ${FLAGS_chroot}/${file}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user