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
Server/<arch>/os/
directory from the test compose in question.- You can choose to exclude
Packages/
andrepo*/
subdirectories. In that case it won't work as a proper repository and you'll need to instruct anaconda to use this location just for fetching its stage2 image. The command would be something like this:$ rsync -avzP --exclude '/Packages/' --exclude '/repo*/' --exclude '/isolinux/' --exclude '**/boot.iso' rsync://dl.phx2.fedoraproject.org/fedora-alt/stage/42_TC1/Server/x86_64/os/ mysource
- Alternatively, you can extract Server DVD image and receive all needed files including a proper package repository (sufficient for a default installation). When extracting it, be careful that some tools might truncate long file names (the safest way is to mount it). When copying files to a different location, be sure to copy also all hidden files as well (there is
.treeinfo
and.discinfo
in the root directory).
- You can choose to exclude
- 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. The file needs to be namedupdates.img
, nothing else is recognized. - Set up a PXE server or configure your VM to boot the kernel pair directly, see QA:Testcase_Boot_Methods_Pxeboot. You have mirrored
vmlinuz
andinitrd.img
earlier, they are inimages/pxeboot/
.
How to test
- Boot the installer using PXE boot with the
inst.repo=
option at boot directed to the modified installation source where theupdates.img
was published. Example:inst.repo=http://myserver/Server/x86_64/os/
If you have excluded packages while mirroring the test compose, you need to useinst.stage2=
instead. You also need to addinst.repo=
option to point to a proper repository (i.e. the official published compose tree). Example:inst.stage2=http://myserver/Server/x86_64/os/ inst.repo=http://dl.fedoraproject.org/fedora-alt/stage/{{FedoraVersionNumber|next}}_TC1/Server/x86_64/os/
See Anaconda/Options for information on supported boot options. - 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