flatcar-scripts/sdk_lib
J. Richard Barnette ea82dfb4dc Don't look in chroot-based paths outside the chroot, even in jest.
When bootstrapping a chroot, the test for "is this a private source
tree repo" looked under the source tree in ~/trunk/src.  That test
was reliable inside the chroot (during update_chroot), but from
outside the chroot (during bootstrapping) it depended on whether the
user had a ~/trunk/src with a certain file.

This change enforces correct behavior outside the chroot regardless
of the contents of the user's home directory.

BUG=chromium-os:31602
TEST=run the test case described in the bug report

Change-Id: I2150347fbad9c84af537f8c572908e6e5ce312b4
Reviewed-on: https://gerrit.chromium.org/gerrit/24659
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2012-06-07 12:07:41 -07:00
..
enter_chroot.sh enter_chroot: fix spurious resolv.conf warning 2012-05-16 20:52:30 -07:00
make_chroot.sh make_chroot: support multiple tarball compression methods (esp. xz) 2012-05-30 17:59:53 -07:00
make_conf_util.sh Don't look in chroot-based paths outside the chroot, even in jest. 2012-06-07 12:07:41 -07:00