Add steps on changing boot slots (#32323)

* Add steps on changing boot slots

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
c0ffeeca7 2024-04-16 11:35:30 +02:00 committed by GitHub
parent 6ec0469a65
commit ab9903c094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,27 @@ Updates of the {% term "Home Assistant Operating System" %} are independent of o
{% endtabbed_block %}
#### About boot slots used during the update
The {% term "Home Assistant Operating System" %} uses two boot slots. On first installation, boot slot A is used. After that, on each Operating System update, the other boot slot is updated and reboot is triggered. On that reboot, the system boots from the other boot slot (A ➝ B ➝ A,...). When booting fails, the system automatically uses the previous boot slot, so that it boots from the last working operating system.
#### Changing the boot slot used
You can manually define that the previous boot slot is used. This can be useful in cases where the system boots but something still seems wrong. For example, when the device is no longer correctly detected or you see another issue that might be related to the latest update of the operating system.
1. To check which boot slot is currently in use and what OS versions are installed in the individual slots, in the Home Assistant command line, enter the following command:
```bash
ha os info
```
2. To change the boot slot, enter the following command:
- This will boot into the other (previous) OS version.
```bash
ha os boot-slot other
```
### Updating Home Assistant Core
{% include common-tasks/update.md %}