QA:Testcase Anaconda updates.img via local media

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(render the <pre> tag correctly)
(use {{filename|foo}} format)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=This test will verify that anaconda can load an updates.img from removable media.  Note, this test needs removable media for storing an ''updates.img'' (USB storage or floppy disk).  Additional information on using an updates.img can be found at [[Anaconda/Updates]].
+
|description=This test will verify that anaconda can load an {{filename|updates.img}} from removable media.  Note, this test needs removable media for storing an {{filename|updates.img}} (USB storage or floppy disk).  Additional information on using an {{filename|updates.img}} can be found at [[Anaconda/Updates]].
 
|actions=
 
|actions=
 
<ol>
 
<ol>
<li> Prepare a valid ''updates.img''.  For example, to create an ''updates.img'' you might run the following
+
<li> Prepare a valid {{filename|updates.img}}.  For example, to create an {{filename|updates.img}} you might run the following
 
<pre>
 
<pre>
 
mkdir /tmp/updates
 
mkdir /tmp/updates
Line 12: Line 12:
 
umount /tmp/updates</pre>
 
umount /tmp/updates</pre>
 
</li>
 
</li>
<li> Write the ''updates.img'' to your removable media: <pre>dd if=/tmp/updates.img of=/dev/sdd</pre></li>
+
<li> Write the {{filename|updates.img}} to your removable media: <pre>dd if=/tmp/updates.img of=/dev/sdd</pre></li>
 
<li> Insert the removable drive (USB key or floppy disk)</li>
 
<li> Insert the removable drive (USB key or floppy disk)</li>
 
<li> Boot the installer with the boot argument: <code>updates</code></li>
 
<li> Boot the installer with the boot argument: <code>updates</code></li>
Line 19: Line 19:
 
|results=
 
|results=
 
# The system should install successfully
 
# The system should install successfully
# The ''updates.img'' is loaded successfully, to confirm check for the presence of the file ''/tmp/updates/TESTING123''
+
# The {{filename|updates.img}} is loaded successfully, to confirm check for the presence of the file {{filename|/tmp/updates/TESTING123}}
 
# After install, the system boots successfully
 
# After install, the system boots successfully
 
}}
 
}}
  
 
[[Category:Recovery Test Cases]]
 
[[Category:Recovery Test Cases]]

Revision as of 09:58, 2 June 2011

Description

This test will verify that anaconda can load an updates.img from removable media. Note, this test needs removable media for storing an updates.img (USB storage or floppy disk). Additional information on using an updates.img can be found at Anaconda/Updates.


How to test

  1. Prepare a valid updates.img. For example, to create an updates.img you might run the following
    mkdir /tmp/updates
    dd if=/dev/zero of=/tmp/updates.img bs=1k count=1440
    mke2fs /tmp/updates.img
    mount -o loop /tmp/updates.img /tmp/updates
    touch /tmp/updates/TESTING123
    umount /tmp/updates
  2. Write the updates.img to your removable media:
    dd if=/tmp/updates.img of=/dev/sdd
  3. Insert the removable drive (USB key or floppy disk)
  4. Boot the installer with the boot argument: updates
  5. When prompted, select the appropriate removable device from the list

Expected Results

  1. The system should install successfully
  2. The updates.img is loaded successfully, to confirm check for the presence of the file /tmp/updates/TESTING123
  3. After install, the system boots successfully