From Fedora Project Wiki
Description
This test will verify that anaconda can download and apply a updates.img
that is inside the remote installation source without extra input from the user.
Setup
- Prepare a local installation source by mirroring an existing online source. You can either mirror a whole repository for Fedora Branched, or you can mirror just a single test compose.
- When mirroring the whole Fedora Branched repository, mirror
/pub/fedora/linux/development/42/<arch>/os/
directory from one of the official mirrors. This amounts to dozens of GBs of space, but you will be able to use a standardnetinst.iso
/DVD.iso
/Live.iso
with it. - When mirroring a single test compose, mirror
/Fedora/<arch>/os/
directory from the compose, but excluderepodata/
andPackages/
subdirectories. This is just hundreds of MBs, but you will need to use direct kernel boot (PXE or a kernel boot in a virtual machine) to test it.
- When mirroring the whole Fedora Branched repository, mirror
- Make the installation source accessible over one of the supported network protocols (HTTP, FTP, NFS).
- Prepare a valid
updates.img
file. There is anupdates.img
prepared for you in this test case. You can use it and follow the same steps to verify that it is applied. If it doesn't work or you want to use a different one, see this page for image creation instructions, and prepare your own file. A good thing to change in the image is the What language would you like to use during the installation process? text inpyanaconda/ui/gui/spokes/welcome.glade
, as this text is displayed on one of the first screens. - Copy the
updates.img
into theimages/
directory of your local installation source
How to test
- Boot the installer using the
inst.stage2=
option at boot directing to the modified installation source where theupdates.img
was published. See Anaconda/Options for information on supported boot options.- If you have a full repository mirrored, you can use any boot medium.
- If you have just a test compose files mirrored, you need to use direct kernel boot (PXE or a kernel boot in a virtual machine). It will use the provided
inst.repo
as a source of Anaconda's stage2 image and it should also applyupdates.img
, if available. The online repositories will then be used as the package source.
- If it's possible, visually identify that the update was applied. If you have used the prepared
updates.img
from this test case, follow its relevant steps to verify it applied correctly. - If it's not visually possible to confirm the update was applied (there were just code changes), verify the existence of
/tmp/updates
directory, which should contain all updated source code files. - Proceed with installation
Expected Results
- Anaconda downloads the
updates.img
and copies its content to/tmp/updates/
. Any changes you included in the updates.img file are applied (image changes, text adjustments, source code changes, etc). - Anaconda proceeds without related errors