update hooks: add an upgrade for stale daisy

The daisy PFQ did not regenerate itself, so for people who tried to build
daisy again, they got a mix of stale binpkgs.  Now that things have been
manually cleaned up, we can deploy another upgrade hook just for daisy.

BUG=None
TEST=`./update_chroot` w/out daisy ran quick -> nothing to do
TEST=`./update_chroot` w/up-to-date daisy ran quick -> nothing to do
TEST=`./update_chroot` w/out-of-date daisy -> deleted & re-installed daisy

Change-Id: Id707a492f9cea7fb4c8b204d84c4fc3bca84c4b3
Reviewed-on: https://gerrit.chromium.org/gerrit/24908
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-06-08 17:07:41 -04:00 committed by Gerrit
parent 3ba74cefcb
commit 9c7eff8fca

View File

@ -0,0 +1,14 @@
# 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.
# Like 41_arm_new_hardfp_ldso, but specifically for daisy. The daisy
# PFQ did not regenerate its binpkgs properly, so some people still have
# old ldso's in /build/ as they pulled down stale binpkgs.
if scanelf -qRiy /build/daisy/ 2>/dev/null | grep -q '^/lib/ld-linux.so.3'; then
info "You have a stale daisy build; punting!"
sudo rm -rf /build/daisy/
info "Running setup_board --board=daisy"
~/trunk/src/scripts/setup_board --board=daisy --skip_chroot_upgrade
fi