update hooks: slip in public rambi overlay
For people who have rambi builds already, regen their board configs
so that they also include the public overlay.
CQ-DEPEND=CL:174384
BUG=None
TEST=`./update_chroot` converts a private-only /build/rambi to include
the public repo
Change-Id: I948de94d4e00afc008c8544c9edf7d443533578c
Reviewed-on: https://chromium-review.googlesource.com/174440
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
diff --git a/chroot_version_hooks.d/72_rambi_go_public b/chroot_version_hooks.d/72_rambi_go_public
new file mode 100644
index 0000000..845ec7b
--- /dev/null
+++ b/chroot_version_hooks.d/72_rambi_go_public
@@ -0,0 +1,14 @@
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# We moved a lot of files to the public overlay. Make sure we regen the
+# boards profile settings and such so we pull in the public bits.
+BOARD=rambi
+
+if [[ -d /build/${BOARD} ]]; then
+ ~/trunk/src/scripts/setup_board \
+ --board=${BOARD} \
+ --skip_chroot_upgrade \
+ --regen_configs
+fi