update hooks: undo /etc/portage/env support

This drops the work that we did in 14_board_portage_env as support for
per-package env in the overlay has been moved to profile.bashrc.  That
do not require modification of any /etc/portage/env dirs.

BUG=chromium-os:21787
TEST=update chroot to ver 15, make sure /build/*/etc/portage/env are gone

Change-Id: I4f1d577f125a66efdeabdbbd8f862562c2e5d2e5
Reviewed-on: https://gerrit.chromium.org/gerrit/11047
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
This commit is contained in:
Mike Frysinger 2011-11-02 11:03:33 -04:00 committed by Gerrit
parent e996baa382
commit 6b38b1e1af

View File

@ -0,0 +1,19 @@
# 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.
# Make sure the board's /etc/portage/env is no longer a symlink.
# This basically reverts the old 14_board_portage_env.
for board_root in /build/*; do
envd="${board_root}/etc/portage/env"
if [ -L "${envd}" ]; then
sudo rm -f "${envd}"
fi
done
# Then undo the host bashrc.
if [ -L /etc/portage/bashrc ]; then
sudo rm -f /etc/portage/bashrc
fi
exit 0