Merge pull request #299 from marineam/fix

update_chroot: fix transition to new os-release location
This commit is contained in:
Michael Marineau 2014-07-14 18:25:17 -07:00
commit 7025bd734d
3 changed files with 6 additions and 32 deletions

View File

@ -0,0 +1,6 @@
#!/bin/bash
# Dummy script to fill this empty directory. update_chroot uses this
# to apply one time upgrade scripts but there aren't any right now.
true

View File

@ -1,11 +0,0 @@
#!/bin/bash
# Copyright (c) 2013 The CoreOS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Upgrade python-exec, will transition to dev-lang/python-exec
sudo emerge -qu dev-python/python-exec
# Re-install portage and gentoolkit which tended to have issues
sudo emerge -q sys-apps/portage app-portage/gentoolkit

View File

@ -1,21 +0,0 @@
#!/bin/bash
# Copyright (c) 2013 The CoreOS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cat >&2 <<EOF
Your SDK chroot is too old! (or the version wasn't detected properly)
As of v36 CoreOS has switched from python2.6 to 2.7 but the easiest way
to upgrade is to recreate the chroot. On the host system please run:
repo sync
./chromite/bin/cros_sdk --replace
Note: This will delete your existing chroot (but not your source tree)
so if you have anything kicking around in there like fancy dot files in
chroot/home/$USER be sure to copy them elsewhere first!
EOF
exit 1