From cbe102142b2a8144a9ae138c2b13ed8568c0792c Mon Sep 17 00:00:00 2001 From: David Michael Date: Fri, 26 May 2017 14:43:42 -0700 Subject: [PATCH] enter_chroot: initialize with mantle in cros_workon --- sdk_lib/enter_chroot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sdk_lib/enter_chroot.sh b/sdk_lib/enter_chroot.sh index 520f8124ae..5c56da23b1 100755 --- a/sdk_lib/enter_chroot.sh +++ b/sdk_lib/enter_chroot.sh @@ -380,6 +380,15 @@ setup_env() { if [ -d "${gsutil_dir}" ]; then chown -R ${SUDO_UID}:${SUDO_GID} "${gsutil_dir}" fi + + # The SDK should track mantle's master branch by default. + workon_dir="${FLAGS_trunk}/.config/cros_workon" + if [ ! -e "${workon_dir}" ]; then + mkdir -p "${workon_dir}" + echo '=coreos-devel/mantle-9999' > "${workon_dir}/host" + echo ' "${workon_dir}/host.mask" + chown -R ${SUDO_UID}:${SUDO_GID} "${FLAGS_trunk}/.config" + fi ) 200>>"$LOCKFILE" || die "setup_env failed" }