From Fedora Project Wiki

(use {{filename|foo}} format)
(link out to the anaconda/updates page for up-to-date creation instructions)
Line 2: Line 2:
|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]].
|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>
# Prepare a valid {{filename|updates.img}} file. See [[Anaconda/Updates#create-images|this page]] for image creation instructions. A good thing to change in the {{filename|updates.img}} is the "What language would you like to use during the installation process?" text in {{filename|pyanaconda/iw/language_gui.py}}, as this text is displayed on one of the first screens.
<li> Prepare a valid {{filename|updates.img}}. For example, to create an {{filename|updates.img}} you might run the following
# Write the {{filename|updates.img}} to your removable media: <pre>dd if=/tmp/updates.img of=/dev/sdd</pre>
<pre>
# Insert the removable drive (USB key or floppy disk)
mkdir /tmp/updates
# Boot the installer with the boot argument: <code>updates</code>
dd if=/dev/zero of=/tmp/updates.img bs=1k count=1440
# When prompted, select the appropriate removable device from the list
mke2fs /tmp/updates.img
mount -o loop /tmp/updates.img /tmp/updates
touch /tmp/updates/TESTING123
umount /tmp/updates</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> Boot the installer with the boot argument: <code>updates</code></li>
<li> When prompted, select the appropriate removable device from the list</li>
</ol>
|results=
|results=
# The system should install successfully
# The system should install successfully
# The {{filename|updates.img}} is loaded successfully, to confirm check for the presence of the file {{filename|/tmp/updates/TESTING123}}
# Anaconda prepares the {{filename|updates.img}} and copies its content to {{filename|/tmp/updates/}}. Any changes you included in the updates.img file are applied
# After install, the system boots successfully
# Anaconda proceeds without related errors
}}
}}


[[Category:Recovery Test Cases]]
[[Category:Recovery Test Cases]]

Revision as of 18:51, 7 May 2012

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 file. See this page for image creation instructions. A good thing to change in the updates.img is the "What language would you like to use during the installation process?" text in pyanaconda/iw/language_gui.py, as this text is displayed on one of the first screens.
  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. Anaconda prepares the updates.img and copies its content to /tmp/updates/. Any changes you included in the updates.img file are applied
  3. Anaconda proceeds without related errors