chroot: add parrot 64-bit conversion script

Change-Id: I712abf0cb541678b0b1e2a798d99016c4f0f701b
Signed-off-by: Olof Johansson <>
Reviewed-by: Sonny Rao <>
diff --git a/chroot_version_hooks.d/66_64bit_convert_parrot b/chroot_version_hooks.d/66_64bit_convert_parrot
new file mode 100644
index 0000000..818ae12
--- /dev/null
+++ b/chroot_version_hooks.d/66_64bit_convert_parrot
@@ -0,0 +1,19 @@
+# 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.
+# This is meant to happen immediately after we update these boards
+# from 32bit to 64bit.  It moves the existing build root out of the
+# way and re-creates the build root.  The user must remove the copy
+# of the old build root manually if it is not needed.
+if [[ -d ${build} ]] ; then
+  info "Moving 32bit ${board} to ${board}.32bit"
+  info "If you don't need it, please run "
+  info "sudo rm -rf ${build}.32bit"
+  sudo mv ${build}{,.32bit}
+  info "Running setup_board --board=${board}"
+  ~/trunk/src/scripts/setup_board --board=${board} --skip_chroot_upgrade