From Fedora Project Wiki

No edit summary
(Reworded to make non-live ISO note more clear)
Line 4: Line 4:
# Download the {{filename|.iso}} media files you wish to test
# Download the {{filename|.iso}} media files you wish to test
# Download the matching CHECKSUM file.  For example, {{filename|Fedora-12-Beta-i386-CHECKSUM}}.
# Download the matching CHECKSUM file.  For example, {{filename|Fedora-12-Beta-i386-CHECKSUM}}.
# Validate that the published CHECKSUM match the downloaded ISO files by running the command {{command|sha256sum}}.  For example, you might type: <pre>sha256sum -c Fedora-12-Beta-i386-CHECKSUM</pre>
# Validate that the published CHECKSUM matches the downloaded ISO files by running the command {{command|sha256sum}}.  For example, you might type: <pre>sha256sum -c Fedora-12-Beta-i386-CHECKSUM</pre>
# Validate the md5sum imprinted inside the ISO image by running the command {{command|checkisomd5}} (if not available on your system, then "yum install {{package|isomd5sum}}")For example, to check all ISO files, you might type: <pre>for ISO in Fedora-*.iso ; do echo "= $ISO =" ; checkisomd5 $ISO ; echo; done</pre> (Note: This check is not available for Live images)
# For all installation ISO images (does '''not''' include Live ISO images), validate the md5sum imprinted inside the ISO image.  First, install the {{package|isomd5sum}} package by typing: {{command|yum install isomd5sum}}.  Next, to check all ISO files using the {{command|sha256sum}} command, you might type: <pre>for ISO in Fedora-*.iso ; do echo "= $ISO =" ; checkisomd5 $ISO ; echo; done</pre>
<!-- <pre>checkisomd5 Fedora-12-Beta-i386-DVD.iso</pre> -->
|results=
|results=
# The command {{command|sha256sum}} should return '''OK''' results.  For example:
# The command {{command|sha256sum}} should return '''OK''' results.  For example:
#: <pre>
#: <pre>
#: $ sha256sum -c Fedora-12-Beta-i386-CHECKSUM
#: $ sha256sum -c Fedora-14-i386-CHECKSUM
#: Fedora-12-Beta-i386-DVD.iso: OK
#: Fedora-14-i386-DVD.iso: OK
#: Fedora-12-Beta-i386-disc1.iso: OK
#: Fedora-14-i386-disc1.iso: OK
#: Fedora-12-Beta-i386-disc2.iso: OK
#: Fedora-14-i386-disc2.iso: OK
#: Fedora-12-Beta-i386-disc3.iso: OK
#: Fedora-14-i386-disc3.iso: OK
#: Fedora-12-Beta-i386-disc4.iso: OK
#: Fedora-14-i386-disc4.iso: OK
#: Fedora-12-Beta-i386-disc5.iso: OK
#: Fedora-14-i386-disc5.iso: OK
#: Fedora-12-Beta-i386-netinst.iso: OK</pre>
#: Fedora-14-i386-netinst.iso: OK</pre>
# The command {{command|checkisomd5}} should indicate that it is '''OK to use this media''' for each ISO image.  For example:
# The command {{command|checkisomd5}}, when run against installation ISO images ('''not''' Live ISO images) should indicate that it is '''OK to use this media''' for each ISO image.  For example:
#: <pre>
#: <pre>
#: The media check is complete, the result is: PASS.
#: The media check is complete, the result is: PASS.
#:  
#:  
#: It is OK to use this media.</pre>
#: It is OK to use this media.</pre>
}}
}}


[[Category:Installer_Image_Sanity_Test_Cases]]
[[Category:Installer_Image_Sanity_Test_Cases]]

Revision as of 14:51, 13 October 2010

Description

This test is intended to verify that the posted ISO media matches the published sha256sum.


How to test

  1. Download the .iso media files you wish to test
  2. Download the matching CHECKSUM file. For example, Fedora-12-Beta-i386-CHECKSUM.
  3. Validate that the published CHECKSUM matches the downloaded ISO files by running the command sha256sum. For example, you might type:
    sha256sum -c Fedora-12-Beta-i386-CHECKSUM
  4. For all installation ISO images (does not include Live ISO images), validate the md5sum imprinted inside the ISO image. First, install the Package-x-generic-16.pngisomd5sum package by typing: yum install isomd5sum. Next, to check all ISO files using the sha256sum command, you might type:
    for ISO in Fedora-*.iso ; do echo "= $ISO =" ; checkisomd5 $ISO ; echo; done

Expected Results

  1. The command sha256sum should return OK results. For example:
    $ sha256sum -c Fedora-14-i386-CHECKSUM
    Fedora-14-i386-DVD.iso: OK
    Fedora-14-i386-disc1.iso: OK
    Fedora-14-i386-disc2.iso: OK
    Fedora-14-i386-disc3.iso: OK
    Fedora-14-i386-disc4.iso: OK
    Fedora-14-i386-disc5.iso: OK
    Fedora-14-i386-netinst.iso: OK
  2. The command checkisomd5, when run against installation ISO images (not Live ISO images) should indicate that it is OK to use this media for each ISO image. For example:
    The media check is complete, the result is: PASS.
    It is OK to use this media.