mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
Add chroot upgrade script to clear out build root(s) when moving to 64bit
BUG=chrome-os-partner:8235 TEST=Ad hoc, apply update to 64bit, run this script, make sure build works Change-Id: If7b39baae1f4f9ab9529b9c00dc7dd49ac2e2987 Reviewed-on: https://gerrit.chromium.org/gerrit/16829 Reviewed-by: Brian Harring <ferringb@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
parent
66fd81f952
commit
ae6b96f3ab
19
chroot_version_hooks.d/27_64bit_convert_lumpy
Normal file
19
chroot_version_hooks.d/27_64bit_convert_lumpy
Normal file
@ -0,0 +1,19 @@
|
||||
# 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.
|
||||
|
||||
board="lumpy"
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user