From Fedora Project Wiki

(Created HD variation test to verify its 'repo=' method)
 
(adjust associated_release_criterion template invocation)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Associated_release_criterion|Final|package-and-installer-sources}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test is designed to test installation from an ISO image on a local disk partition by <code>'''repo='''</code>.
|description=This is to verify that [[Anaconda]]'s <code>inst.repo</code> [[Anaconda Boot Options|boot option]] works together with a {{filename|DVD.iso}} placed on local disk partition.
{{admon/note|Spare disk partition required|This test requires a local disk partition sized large enough to house a 4.5Gib ISO image.  For further details please refer to the [http://docs.fedoraproject.org/en-US/Fedora/{{FedoraVersion}}/html/Installation_Guide/index.html Fedora {{FedoraVersion}} Installation Guide], sections [http://docs.fedoraproject.org/en-US/Fedora/{{FedoraVersion}}/html/Installation_Guide/s1-steps-hd-installs-x86.html Preparing for a Hard Drive Installation]  and  [http://docs.fedoraproject.org/en-US/Fedora/{{FedoraVersion}}/html/Installation_Guide/s1-begininstall-hd-x86.html Installing from a Hard Drive].}}
|setup=
|setup=
# Prepare a system with a spare physical disk partition (not an LVM logical volume) to store the {{filename|DVD.iso}} image.
# Copy the {{filename|DVD.iso}} to the disk partition.
# Remember one of the partition's identifiers - either partition device (like {{filename|/dev/sdb1}}) or LABEL or UUID. {{package|gnome-disk-utility}} can help you with that.
# Prepare any non-live media for booting the installer (anything except {{filename|Live.iso}}).
|actions=
<ol>
<ol>
<li> Prepare a system with a spare disk partition to store a 4.5Gib ISO image. Typically, this can be accomplished by booting into the installer and proceeding to the disk partitioning step
<li>Before booting the installer, specify a target hard disk repository by adding a boot option in one of these forms:
<li> Create a 5G physical disk partition (cannot be a LVM logical volume) with mount point {{filename|/iso}}. Remember the disk partition device (e.g. {{filename|/dev/sdc4}}) as this will be needed in later steps.
<pre>
<li> Complete the installation as desired.
inst.repo=hd:<device>:<path>
{{admon/tip|Speed up|While any package set would be sufficient, the preliminary installation will be faster when using a smaller package set.}}
inst.repo=hd:LABEL=<label>:<path>
inst.repo=hd:UUID=<uuid>:<path>
</pre>
The <code><path></code> can refer to a directory containing a single {{filename|.iso}} file, or to the {{filename|.iso}} file directly.<br/>
Example: <pre>inst.repo=hd:sdb1:/DVD.iso</pre>
Make sure the {{filename|.iso}} file architecture matches the architecture of your installer media.</li>
<li>Proceed with installation.
  <ul>
  <li>Make sure you don't remove or overwrite the partition used as the installation repository (containing the {{filename|DVD.iso}} image).</li>
  </ul>
</li>
</ol>
</ol>
|actions=
|results=
<ol>
<ol>
<li> Copy the installation ISO image into the {{filename|/iso}} directory. For Fedora 14 and earlier, the installation program also requires that you copy the {{filename|images/install.img}} file from the DVD into partition containing the ISO image (e.g. {{filename|/iso/images/install.img}}).  In Fedora 15 and newer, only the ISO image is needed.
<li>The installer auto-selects requested disk repository as the installation source in its GUI</li>
{{admon/important|Don't mix images|When testing DVD ISO images, only copy the DVD ISO image for the exact architecture being tested. Do not mix ISO images from different architectures.}}
<li>The requested repository is used to download and install required packages. This can be checked by inspecting {{filename|/tmp/packaging.log}}. Example output:
<li> Boot your system into the installation program using any available means (netinst.iso, pxeboot images or DVD.iso)
<pre>14:44:07,093 INFO packaging: setting up device sdb1 and mounting on /mnt/install/isodir
<li> Direct anaconda to use the install repository from the disk partition where you copied the ISO image. Provide the device name, LABEL, or UUID of the disk partition by <code>repo=</code> boot argument. For example:
14:44:07,217 INFO packaging: mounting /mnt/install/isodir/DVD.iso on /mnt/install/source
:<pre>
...
:* repo=hd:device:/path
14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
:* repo=hd:LABEL=:/path
14:44:07,568 DEBUG packaging: disabling repo fedora
:* repo=hd:UUID=:/path
14:44:07,569 DEBUG packaging: disabling repo updates-testing
:</pre>
14:44:07,569 DEBUG packaging: disabling repo updates</pre></li>
<li> Complete the installation as desired
<li>The installation completes and the new system initiates boot properly</li>
</ol>
</ol>
|results=
# Anaconda uses the install repository from the hard disk provided
# Anaconda completes the hard drive installation successfully
# Package errors (install.log) should not occur
# System boots successfully
}}
}}



Latest revision as of 21:10, 30 July 2013

Note.png
Associated release criterion
This test case is associated with the Fedora_40_Final_Release_Criteria#package-and-installer-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 a DVD.iso placed on local disk partition.

Setup

  1. Prepare a system with a spare physical disk partition (not an LVM logical volume) to store the DVD.iso image.
  2. Copy the DVD.iso to the disk partition.
  3. Remember one of the partition's identifiers - either partition device (like /dev/sdb1) or LABEL or UUID. Package-x-generic-16.pnggnome-disk-utility can help you with that.
  4. Prepare any non-live media for booting the installer (anything except Live.iso).

How to test

  1. Before booting the installer, specify a target hard disk repository by adding a boot option in one of these forms:
    inst.repo=hd:<device>:<path>
    inst.repo=hd:LABEL=<label>:<path>
    inst.repo=hd:UUID=<uuid>:<path>
    

    The <path> can refer to a directory containing a single .iso file, or to the .iso file directly.

    Example:
    inst.repo=hd:sdb1:/DVD.iso
    Make sure the .iso file architecture matches the architecture of your installer media.
  2. Proceed with installation.
    • Make sure you don't remove or overwrite the partition used as the installation repository (containing the DVD.iso image).

Expected Results

  1. The installer auto-selects requested disk 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: setting up device sdb1 and mounting on /mnt/install/isodir
    14:44:07,217 INFO packaging: mounting /mnt/install/isodir/DVD.iso 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