mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
The old chroot version system we inherited from Chromium OS always assumes that a newly unpacked tarball is the latest and greatest but since we version the SDK in the same way as target builds we can use that version for these sorts of upgrade scripts and not make assumptions about how late and great the starting tarball was. The first upgrade script simply aborts to force the user to recreate their chroot when moving from python 2.6 to 2.7.
22 lines
663 B
Bash
22 lines
663 B
Bash
#!/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
|