mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 09:01:55 +02:00
Merge pull request #299 from marineam/fix
update_chroot: fix transition to new os-release location
This commit is contained in:
commit
7025bd734d
6
sdk_lib/updates/0000.0.0.sh
Normal file
6
sdk_lib/updates/0000.0.0.sh
Normal 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
|
@ -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
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user