From Fedora Project Wiki

No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
= Description =
= 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.
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 =
= Setup =
Download and boot/install an IoT compose that is the not the current one. IoT images can be found [https://kojipkgs.fedoraproject.org/compose/iot/ here]. You can run the following command to ensure the Fedora IoT deployment that you have booted/installed is the not the current compose:
Download and boot/install an IoT compose that is the not the current one. IoT images can be found [https://kojipkgs.fedoraproject.org/compose/iot/ 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
  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 =


= How to test =
Prepare a new ostree deployment with upgraded packages and reboot into it:
Run the command:
  rpm-ostree upgrade --reboot
  rpm-ostree upgrade --reboot


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



Latest revision as of 22:51, 12 September 2023

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'.