From Fedora Project Wiki

Revision as of 21:09, 30 July 2013 by Adamwill (talk | contribs) (adjust associated_release_criterion template invocation)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Note.png
Associated release criterion
This test case is associated with the Fedora_40_Beta_Release_Criteria#remote-package-sources release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

This is to verify that Anaconda's inst.repo boot option works together with an NFS repository.

Setup

  1. You need to have a Fedora repository accessible over an NFS protocol. If you do have it, no further setup is needed. If you don't, you can mount a DVD.iso image and export it over NFS this way:
    • Mount the image over loopback: # mount -o loop Fedora-40-x86_64-DVD.iso /mnt/repo
    • Install Package-x-generic-16.pngnfs-utils.
    • Let's say your (virtual) test machine is in the 192.168.1.0/24 subnet. Put the following line into /etc/exports:
      /mnt/repo    192.168.1.0/24(ro)
    • Restart NFS service: # systemctl restart nfs-server.service
    • The repository is now accessible over NFS via <your_IP>:/mnt/repo
  2. Prepare any non-live media for booting the installer (anything except Live.iso).

How to test

  1. Before booting the installer, specify a target NFS repository by adding a following boot option:
    inst.repo=nfs[:options]:<server>:/<path>
    Example:
    inst.repo=nfs:your_IP:/mnt/repo
    Make sure the repository architecture matches the architecture of your installer media.
  2. Proceed with installation

Expected Results

  1. The installer auto-selects requested NFS repository as the installation source in its GUI
  2. The requested repository is used to download and install required packages. This can be checked by inspecting /tmp/packaging.log. Example output:
    14:44:07,093 INFO packaging: mounting 192.168.1.1:/mnt/repo: on /mnt/install/source
    ...
    14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
    14:44:07,568 DEBUG packaging: disabling repo fedora
    14:44:07,569 DEBUG packaging: disabling repo updates-testing
    14:44:07,569 DEBUG packaging: disabling repo updates
  3. The installation completes and the new system initiates boot properly