mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
update hooks: scrub old unused pkgs
In case people have some of these old pkgs hanging around still, or happened to manually install them while testing, punt them all from our board dirs. BUG=None TEST=build_packages updated chroot and cleaned out old pkgs in other build dirs Change-Id: I2b037e668faef39e78f7422f91df2d5493799c0f Reviewed-on: https://gerrit.chromium.org/gerrit/16818 Reviewed-by: Matt Tennant <mtennant@chromium.org> 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:
parent
ccfec8f71b
commit
97e08bd25b
28
chroot_version_hooks.d/26_scrub_old_pkgs
Normal file
28
chroot_version_hooks.d/26_scrub_old_pkgs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
# We've been dropping packages of late from the target, so make sure the
|
||||||
|
# old stuff gets cleaned out.
|
||||||
|
|
||||||
|
pkgs=(
|
||||||
|
dev-libs/shflags
|
||||||
|
mail-mta/ssmtp
|
||||||
|
net-libs/gssdp
|
||||||
|
net-libs/gupnp
|
||||||
|
net-mail/mailbase
|
||||||
|
sys-fs/sysfsutils
|
||||||
|
sys-process/cronbase
|
||||||
|
sys-process/vixie-cron
|
||||||
|
)
|
||||||
|
|
||||||
|
for board_root in /build/* ; do
|
||||||
|
board=${board_root##*/}
|
||||||
|
emerge_board=$(type -P emerge-${board} 2>/dev/null || true)
|
||||||
|
if [[ -x "${emerge_board}" ]]; then
|
||||||
|
CLEAN_DELAY=0 ${emerge_board} -q --unmerge ${pkgs[@]} || true
|
||||||
|
eclean-${board} -d packages || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user