
* Document OS boot slot changing using the GRUB boot menu Since home-assistant/supervisor#5276 boot slot will be persisted when user selects it in the GRUB menu. Document this behavior. This should be merged to the `current` branch once Supervisor 2024.8.1 is released to the stable channel. * boot loader -> bootloader Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
4.0 KiB
title, description, installation, installation_name, related
title | description | installation | installation_name | related | |||
---|---|---|---|---|---|---|---|
Common tasks - Operating System | Common tasks for Home Assistant Operating System | os | Operating System |
|
This section will provide guides to some common tasks and information which you will need in order to run, maintain, and edit your Home Assistant OS system. For further details on any particular subject, make sure to refer to the documentation for specific add-ons or topics listed here.
{% include common-tasks/file_access.md %} {% include common-tasks/backups.md %}
Updating Home Assistant
If you have the {% term "Home Assistant Operating System" %} installed, you receive update notifications from different components:
- {% term "Home Assistant Operating System" %}
- {% term "Home Assistant Supervisor" %}
- {% term "Home Assistant Core" %}
- Add-ons, if you have any installed
Updating the Home Assistant Operating System
Updates of the {% term "Home Assistant Operating System" %} are independent of other updates. They do not trigger repair issues and are usually backward-compatible.
Prerequisites
- Backup your installation.
- Make sure the backup is downloaded and stored outside of the system.
- So that you can restore from that backup in case there is an issue with the system.
To update the Home Assistant Operating System
{% tabbed_block %}
-
title: Using the UI content: |
- Open the Settings panel.
- On the top you will be presented with an update notification.
If you do not see that notification, in the top right, select the three dots menu and select Check for updates".
-
title: Using the CLI content: |
ha os update
This updates to the latest version. If you want to update to a specific version instead, use
ha os update --version 12.0
.
{% 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.
-
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:
ha os info
-
To change the boot slot, enter the following command:
- This will boot into the other (previous) OS version.
ha os boot-slot other
Alternatively, if the Operating Systems runs on a platform that uses the GRUB bootloader, a boot menu is presented early in the boot. The alternative boot slot can be selected here, marking it active for future boots if the following boot attempt is successful.
Updating Home Assistant Core
{% include common-tasks/update.md %}
{% include common-tasks/network_storage.md %} {% include common-tasks/lost_password.md %} {% include common-tasks/third-party-addons.md %} {% include common-tasks/configuration_check.md %}
Home Assistant versions
To see which version your system is running, go to {% my info title="Settings > About" %}.
{% include common-tasks/specific_version.md %} {% include common-tasks/beta_version.md %} {% include common-tasks/development_version.md %}
{% include common-tasks/data_disk.md %}
{% include common-tasks/commandline.md %}
{% include common-tasks/enable_i2c.md %}