enter_chroot: pass ~/.config/chromite/ in
We're going to start putting more configs into this, so bind mount
it into the SDK if it's available.
BUG=None
TEST=`cros_sdk` has ~/.config/chromite/ in it
Change-Id: I5f787bf8c6dba10db1ff338f365abcc1b19e350a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2746439
Tested-by: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
diff --git a/sdk_lib/enter_chroot.sh b/sdk_lib/enter_chroot.sh
index b49c827..5f0e1e9 100755
--- a/sdk_lib/enter_chroot.sh
+++ b/sdk_lib/enter_chroot.sh
@@ -521,6 +521,11 @@
fi
fi
+ if [[ -d "${SUDO_HOME}/.config/chromite" ]]; then
+ setup_mount "${SUDO_HOME}/.config/chromite" "--bind" \
+ "/home/${SUDO_USER}/.config/chromite"
+ fi
+
# A reference to the DEPOT_TOOLS path may be passed in by cros_sdk.
if [ -n "${DEPOT_TOOLS}" ]; then
debug "Mounting depot_tools"