System upgrade
The LORIX OS system can be fully update with a new system image. These updates are totally fail safe as the update is done atomically. This means the switch from the old to the new system is done in a single operation so that if a power loss occurs at any time during the update, you will always have a bootable system.
Update process
LORIX OS provides a very simple way to update to the new versions of the system, but gives you full control over when to do it.
The update process is split in three steps:
- Download the update to the gateway
- Apply the update and restart the gateway
- Confirm the update
Each of these steps is manually triggered by the user, so that you don't have updates being applied when you have a critical need of your system. At each step, you can choose to cancel the update and you can even go back to an older version if something went wrong during the update.
Check for new updates
The gateway can automatically check online if there is a new update available. To do so, you need an access to the Internet.
When you go to the System Update page, the GUI will automatically check if new updates are available online.
You can check available update with the manager:
Check available upgrades
Checking available updates... You already have the latest version - Version 0.3.1 (Chaussy) - Date: 2019-12-18 14:44:29 +0000 UTC
The manager also automatically checks for available updates if the gateway has access to the Internet. If an update is available, you will be informed when you log in through the "Message of the day".
You can configure the automatic check through the manager configuration /etc/manager/config.yml
:
Manager update check configuration
Update channels
The updates are released through multiple channels that will have a different update frequency:
- latest - uses the latest versions as soon as they are released
- stable - use the versions that are known to be in use for a few weeks
- lts - uses long term support releases only
You can configure the channel used in the manager configuration /etc/manager/config.yml
:
Manager update channel configuration
Perform the upgrade
The GUI will guide you through the upgrade steps.
You can see the current status of the update with the manager:
The "message of the day" shown after login will also show you if an update is in progress.
Download
You can start a download with the manager:
The manager will then download the update to the gateway. Once done, it will ask you if you want to install it.
The manager will take the latest release based on the selected feed. If you want to use a specific version, you can specify the release URL with the -r
option.
Install
You can install a downloaded upgrade with:
The manager performs the migration of your configuration.
Once done, restart the gateway either using the manager or run:
The manager doesn't force you to reboot right after the update, but keep in mind that once the migration is done, any changes to the configuration will not be persisted after the reboot.
From this point, if the gateway is power cycled, it will start into the upgraded system as if you rebooted.
You can cancel an update after is has been applies:
Validate
After reboot, check that anything works as expected. When you fully validated the new system, validate the upgrade with:
If you have any problem with the new system, you can roll back to the previous version with:
If you don't have access to the gateway after the reboot, you can simply power cycle the gateway and it will restart in the previous version.
If the gateway is power cycled before the new version has been persisted, it will boot into the previous version. All modifications made in the new system will be lost.