mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 00:51:41 +02:00
When bootstrapping for the first time, files in chroot/etc/ might not exist, so we can't run `find` on them. This manifests itself currently by spitting out the warning on all initial sdk boots: find: `.../chroot/etc/resolv.conf': No such file or directory People can find this confusing and cause sheriffs to waste time on the wrong thing, so rework the code to avoid this. BUG=None TEST=`cros_sdk --delete ; cros_sdk` no longer warns about resolv.conf Change-Id: I83f892e325e63e682aeb370a9dfc33e284e059d2 Reviewed-on: https://gerrit.chromium.org/gerrit/22845 Reviewed-by: Brian Harring <ferringb@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>