From Fedora Project Wiki

No edit summary
(use template for description)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Associated_release_criterion|Alpha|initialization_requirements}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test verifies that Fedora Live Image can be booted from USB stick.
|description={{Testcase usb description|command=the livecd-iso-to-disk command}}
 
There are more methods to create the Live USB stick, this test covers Livecd-iso-to-disk.
|setup=
|setup=
# Prepare the Live ISO image and USB stick.
{{Testcase usb setup}}
# Copy the {{filename|Live.iso}} to the USB stick using Livecd-iso-to-disk[http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB#Run_livecd-iso-to-disk_script]
# On an existing Fedora system, install {{package|livecd-tools}}.
|actions=
|actions=
# Insert the USB stick containing {{filename|Live.iso}}, and boot the system under test
# Write the image to the USB stick using {{command|livecd-iso-to-disk}}.
# At the boot prompt, interrupt the automatic boot sequence by pressing any key. Then select the menu option Boot.
#* Example command is: {{command|1=livecd-iso-to-disk --format --reset-mbr --efi Fedora-Workstation-Live-x86_64-{{FedoraVersionNumber|next}}-1.1.iso /dev/sdX}} where you replace ''sdX'' by your USB stick device identifier. '''This will destroy all data on that stick.'''
# From live image desktop, or from the Application menu, click the icon Install to hard drive
#* A longer guide how to use this command is available at [[How to create and use Live USB#litd]]. You can also run the command with {{command|--help}} option.
# Complete the installation as desired
{{Testcase usb actions}}
# Reboot the system and remove the Live boot media
|results=
|results=
# A graphical boot menu is displayed and the graphics look reasonably good. While hi-res images aren't supported in the boot menu, the graphics should not look extremely pixelated.
{{Testcase usb results|litd=1}}
# Upon selecting Boot, the Live image boots successfully.
# The installer starts without error
# The installer completes without error
# The system reboots successfully
}}
}}
[[Category:Installer Boot Methods]]
[[Category:USB_test_cases]]

Latest revision as of 19:08, 30 September 2016

Associated release criterion
This test case is associated with the Basic_Release_Criteria#initialization_requirements 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 test verifies that a Fedora ISO image can be written to a USB stick with the livecd-iso-to-disk command, and successfully boots and installs.

Data loss
Any data on the USB stick used for this test is likely to be destroyed. Please do not use a stick whose contents you need to keep.

Setup

  1. Download the Fedora image you wish to test.
  2. Ensure you have a USB stick larger than the image file, and whose contents you can afford to lose (the contents of the stick will be destroyed as a part of the test).
  3. On an existing Fedora system, install livecd-tools.

How to test

  1. Write the image to the USB stick using livecd-iso-to-disk.
    • Example command is: livecd-iso-to-disk --format --reset-mbr --efi Fedora-Workstation-Live-x86_64-42-1.1.iso /dev/sdX where you replace sdX by your USB stick device identifier. This will destroy all data on that stick.
    • A longer guide how to use this command is available at How to create and use Live USB#litd. You can also run the command with --help option.
  2. Boot the system from the USB stick.
  3. If testing a live image, start the installer.
  4. Proceed with the installation.

Expected Results

  1. The image is written to the USB stick without error.
  2. The stick boots without error.
    • If you choose to perform media consistency verification before the actual boot, the check will be skipped and not performed at all, the medium will boot right away. That's expected, media verification works only for dd-style conversion.
  3. The installer starts without error.
  4. The installation finishes successfully, and if a DVD image was used, uses the package repository on the USB stick (not a network repository).
  5. The new system initiates boot properly. Note that problems after boot that do not seem to be related to writing the image to a USB stick are likely out of the scope of this test case, though they may count as failures of one of the other installation validation test cases. If you observe the same failure booting the image in a virtual machine or from an optical disc, it is likely not a failure of this test case.