From 232cb578ed88155e619e071943f6cfc62137cc62 Mon Sep 17 00:00:00 2001 From: David James Date: Wed, 8 Jun 2011 14:39:50 -0700 Subject: [PATCH] Upgrade script to handle policykit -> polkit migration. This script also helps out with chromeos-u-boot-next -> chromeos-u-boot migration. BUG=chromium-os:16310 TEST=Run the script and verify right packages are uninstalled. Change-Id: I4ebaa0a0b3e1eea32005b4d2a47f4581e44d825c Reviewed-on: http://gerrit.chromium.org/gerrit/2309 Tested-by: David James Reviewed-by: David James --- chroot_version_hooks.d/4_policykit_removal | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 chroot_version_hooks.d/4_policykit_removal diff --git a/chroot_version_hooks.d/4_policykit_removal b/chroot_version_hooks.d/4_policykit_removal new file mode 100644 index 0000000000..7650996c9d --- /dev/null +++ b/chroot_version_hooks.d/4_policykit_removal @@ -0,0 +1,18 @@ +# Copyright (c) 2011 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. + +# 1. Unmerge sys-auth/policykit because it's replaced by polkit. +# 2. Unmerge sys-boot/chromeos-u-boot-next and friends because it's replaced +# by sys-boot/chromeos-u-boot. +for board_root in /build/*; do + if [ -d "${board_root}" ]; then + board=$(basename "${board_root}") + CLEAN_DELAY=0 emerge-${board} --unmerge sys-auth/policykit \ + sys-boot/chromeos-u-boot-next-build-env sys-boot/chromeos-u-boot-next \ + chromeos-base/vboot_reference-firmware || true + fi +done + +info "Chroot upgraded to version 4: policykit -> polkit" +exit 0