mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 20:47:00 +02:00
update_chroot: fix transition to new os-release location
Previously /etc/os-release was installed both by set_lsb_release and the baselayout package. Now it is only installed by set_lsb_release but when baselayout is upgraded it removes /etc/os-release. So the first update_chroot works but the second detects the chroot's version incorrectly and tries to apply the one time updates in this directory. Both of them are very old so we can just delete them. The second run will now fix up /etc/os-release and we can all move on and be happy.
This commit is contained in:
parent
1016bb323b
commit
4b23a26667
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…
Reference in New Issue
Block a user