Update and Rollback
Upgrade
Yocto
The update of the Yocto version of SEAPATH uses software update. The update process is described on the Ansible repository.
Debian
The apt package tool is used to upgrade the system. You can use the rollback to avoid loss of the system (more details in the below section).
Update the database of available packages, with their version:
apt update
Upgrade the system with the new version of packages:
apt upgrade --yes
Upgrade the system with new version of Debian and remove useless packages:
apt dist-upgrade --yes
apt autoremove --yes --purge
Rollback
As mentioned here, the root partition is on LVM disk. With this configuration, it can be saved by a LVM snapshot.
With snapshots, the partition can be rollback in the stable state with this command:
Otherwise, the snapshot can be removed with these commands:
More details here.
Troubleshooting
Can't create a snapshot with old name
If you don't reboot the machine, the lvcreate
command believes the name is always used. To remove it, you need to launch this command:
Â