| # Copyright 2015 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. |
| |
| # The linux-3.4 kernel is no longer used so make sure it gets cleaned |
| # out for existing devices. |
| |
| packages=( |
| sys-kernel/chromeos-kernel |
| ) |
| |
| for sysroot in /build/* /; do |
| ( |
| if ROOT="${sysroot}" qlist -ICe "${packages[@]}" >&/dev/null; then |
| info "Cleaning ${packages[*]} from ${sysroot}" |
| sudo ROOT="${sysroot}" qmerge -yqU "${packages[@]}" |
| fi |
| ) & |
| done |
| wait |