mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
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:
parent
e996baa382
commit
6b38b1e1af
19
chroot_version_hooks.d/15_board_portage_env_undo
Normal file
19
chroot_version_hooks.d/15_board_portage_env_undo
Normal 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
|
Loading…
x
Reference in New Issue
Block a user