From Fedora Project Wiki

Revision as of 22:51, 12 September 2023 by Coremodule (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

A validation test case for upgrading an rpm-ostree based IoT installation from a previous compose to the latest. This testcase can be run on either an image or installation, on hardware or in virtualization.

Setup

Download and boot/install an IoT compose that is the not the current one. IoT images can be found here. You can run the following command to ensure the Fedora IoT deployment that you have booted/installed is the not the current compose:

rpm-ostree status

Optional: check to see which packages will be upgraded without upgrading by running the following and looking under "Upgraded":

rpm-ostree upgrade --preview

How to test

Prepare a new ostree deployment with upgraded packages and reboot into it:

rpm-ostree upgrade --reboot

Once the system is rebooted, log in and check to make sure you're running the new deployment:

rpm-ostree status

Results

1. System is upgraded and reboots into the new deployment by default, with the previous deployment still listed in 'rpm-ostree status'.