mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
Choot update script to force setup board for kiev.
This is to transition from a 32bit to 64bit build. BUG=chrome-os-partner:11058 TEST=build_packages for board=kiev. Verify choot upgraded. Change-Id: I251be4eba14ba407cfbc6ecf4fb089efe7d457e8 Reviewed-on: https://gerrit.chromium.org/gerrit/26743 Reviewed-by: Dave Parker <dparker@chromium.org> Tested-by: Dave Parker <dparker@chromium.org>
This commit is contained in:
parent
d54aa70d57
commit
258021c878
20
chroot_version_hooks.d/43_64bit_convert_kiev
Normal file
20
chroot_version_hooks.d/43_64bit_convert_kiev
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2012 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.
|
||||
|
||||
for board in kiev; do
|
||||
build="/build/${board}"
|
||||
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
|
||||
fi
|
||||
done
|
||||
Loading…
x
Reference in New Issue
Block a user