Updating from CoreOS Container Linux
If you already have CoreOS Container Linux clusters and can’t or don’t want to freshly install Flatcar Container Linux, you can update to Flatcar Container Linux directly from CoreOS Container Linux by performing the following steps.
NOTE: General differences when migrating from CoreOS Container Linux also apply.
The migration script
The update-to-flatcar.sh script does all required steps for you:
|
|
If it fails due to SSL connection issues from outdated certificates, you can also download the update payload of the latest Stable release through plain HTTP and use the flatcar-update script instead:
|
|
Before you reboot, check that you migrated the variable names as written in Migrating from CoreOS Container Linux .
Going back to CoreOS Container Linux
You can also go the other way.
Manual rollback
If you just updated to Flatcar (and haven’t done any additional updates), CoreOS Container Linux will still be on your disk, you just need to roll back to the other partition.
To do that, just use this command composition:
|
|
Now you can reboot and you’ll be back to CoreOS Container Linux.
Remember to undo your changes in your /etc/coreos/update.conf after rolling back if you want to keep getting CoreOS Container Linux updates.
For more information about manual rollbacks, check Performing a manual rollback .
Force an update to CoreOS Container Linux
This procedure is similar to updating from CoreOS Container Linux to Flatcar Container Linux. You need to get CoreOS Container Linux’s public key, point update_engine to CoreOS Container Linux’s update server, and force an update.
Get CoreOS Container Linux’s public key:
|
|
Bind-mount it:
|
|
Create an /etc/flatcar directory and copy the current update configuration:
|
|
Change the SERVER field in /etc/flatcar/update.conf:
|
|
Bind-mount the release file:
|
|
Edit FLATCAR_RELEASE_VERSION to force an update:
|
|
After that, restart the update service so it rescans the edited configuration and initiates an update. The system will reboot into CoreOS Container Linux:
|
|