flatcar-scripts/sdk_lib/updates/36.0.0_python_upgrade_required.sh
Michael Marineau 74c4f21b68 fix(update_chroot): Replace old chroot version scheme.
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.
2013-08-06 13:54:18 -04:00

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